(svn r2967) Fix: newgrf: Wagon speed limits don't apply for wagons with livery overrides. Fixes max speed in dbsetxl etc.
authorpeter1138
Tue, 20 Sep 2005 19:35:52 +0000
changeset 2441 20ccbbcffa9b
parent 2440 443e2f3cce75
child 2442 da9a2075c747
(svn r2967) Fix: newgrf: Wagon speed limits don't apply for wagons with livery overrides. Fixes max speed in dbsetxl etc.
train_cmd.c
--- a/train_cmd.c	Tue Sep 20 17:33:57 2005 +0000
+++ b/train_cmd.c	Tue Sep 20 19:35:52 2005 +0000
@@ -113,7 +113,7 @@
 		}
 
 		// 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)