diff options
author | peter1138 <peter1138@openttd.org> | 2005-09-20 19:35:52 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-09-20 19:35:52 +0000 |
commit | adfe78f54ccdbb53bd9bbc393a1aa62ade49027a (patch) | |
tree | 0ce27a94ffd8982baea472465703b6aa0ea30598 | |
parent | 75be0ed773b9839c96c19fbd05a3d744b8ab3f6e (diff) | |
download | openttd-adfe78f54ccdbb53bd9bbc393a1aa62ade49027a.tar.xz |
(svn r2967) Fix: newgrf: Wagon speed limits don't apply for wagons with livery overrides. Fixes max speed in dbsetxl etc.
-rw-r--r-- | train_cmd.c | 2 |
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) |