summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-09-20 19:35:52 +0000
committerpeter1138 <peter1138@openttd.org>2005-09-20 19:35:52 +0000
commitadfe78f54ccdbb53bd9bbc393a1aa62ade49027a (patch)
tree0ce27a94ffd8982baea472465703b6aa0ea30598 /train_cmd.c
parent75be0ed773b9839c96c19fbd05a3d744b8ab3f6e (diff)
downloadopenttd-adfe78f54ccdbb53bd9bbc393a1aa62ade49027a.tar.xz
(svn r2967) Fix: newgrf: Wagon speed limits don't apply for wagons with livery overrides. Fixes max speed in dbsetxl etc.
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 716c795b7..3bde7c07d 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -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)