mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r2967) Fix: newgrf: Wagon speed limits don't apply for wagons with livery overrides. Fixes max speed in dbsetxl etc.
This commit is contained in:
parent
5676cc32b4
commit
4d8c903d62
@ -113,7 +113,7 @@ void TrainConsistChanged(Vehicle *v) {
|
||||
}
|
||||
|
||||
// max speed is the minimum of the speed limits of all vehicles in the consist
|
||||
if (rvi_u->max_speed != 0)
|
||||
if (rvi_u->max_speed != 0 && !UsesWagonOverride(u))
|
||||
max_speed = min(rvi_u->max_speed, max_speed);
|
||||
|
||||
// check the vehicle length (callback)
|
||||
|
Loading…
Reference in New Issue
Block a user