diff options
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/train_cmd.c b/train_cmd.c index 3fad0435a..e5b3f2b1b 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -113,8 +113,9 @@ 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 && !UsesWagonOverride(u)) - max_speed = min(rvi_u->max_speed, max_speed); + if (!(rvi_u->flags & RVI_WAGON) || _patches.wagon_speed_limits) + if (rvi_u->max_speed != 0 && !UsesWagonOverride(u)) + max_speed = min(rvi_u->max_speed, max_speed); // check the vehicle length (callback) veh_len = CALLBACK_FAILED; |