Add a setting for train speed adaptation

Prior to this change, without realistic breaking, trains would continuously run into the train in front of them. This makes them adjust their speed based on trains in front of them
This commit is contained in:
Andreas Schmitt
2021-06-17 15:52:45 +02:00
parent 9f56818ca7
commit debc504e59
6 changed files with 92 additions and 2 deletions

View File

@@ -572,6 +572,7 @@ struct VehicleSettings {
uint8 train_slope_steepness; ///< Steepness of hills for trains when using realistic acceleration
uint8 roadveh_slope_steepness; ///< Steepness of hills for road vehicles when using realistic acceleration
bool wagon_speed_limits; ///< enable wagon speed limits
bool train_speed_adaption; ///< Faster trains behind slower trains slow down
bool slow_road_vehicles_in_curves; ///< Road vehicles slow down in curves.
bool disable_elrails; ///< when true, the elrails are disabled
UnitID max_trains; ///< max trains in game per company