From 4d8c903d62547f1dd0dd0f0acf7231aa2e94e3f3 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 20 Sep 2005 19:35:52 +0000 Subject: [PATCH] (svn r2967) Fix: newgrf: Wagon speed limits don't apply for wagons with livery overrides. Fixes max speed in dbsetxl etc. --- train_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train_cmd.c b/train_cmd.c index 716c795b77..3bde7c07d4 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)