summaryrefslogtreecommitdiff
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
commit4d8c903d62547f1dd0dd0f0acf7231aa2e94e3f3 (patch)
tree0ce27a94ffd8982baea472465703b6aa0ea30598
parent5676cc32b4269a3aa5f00bf361df679ed63083ce (diff)
downloadopenttd-4d8c903d62547f1dd0dd0f0acf7231aa2e94e3f3.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.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)