# HG changeset patch # User peter1138 # Date 2005-09-20 19:35:52 # Node ID 9b5bc4db6b366c71e2e13ed2669b4cf66ae79c60 # Parent dbb24f1e82f17dff7c62a5bf1ee1be5a10ccb8b6 (svn r2967) Fix: newgrf: Wagon speed limits don't apply for wagons with livery overrides. Fixes max speed in dbsetxl etc. diff --git a/train_cmd.c b/train_cmd.c --- 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)