Add: Setting to uniformly slow the acceleration and braking of realistic trains

This does not affect the maximum speed.
This commit is contained in:
Alistair Lynn
2024-05-25 18:24:25 +00:00
committed by Jonathan G Rennison
parent 0351734729
commit 7ef8706ed2
6 changed files with 26 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ void NormalizeTrainVehInDepot(const Train *u);
inline int GetTrainRealisticBrakingTargetDecelerationLimit(int acceleration_type)
{
return 120 + (acceleration_type * 48);
return _settings_game.vehicle.train_acc_braking_percent * (120 + (acceleration_type * 48)) / 100;
}
/** Flags for TrainCache::cached_tflags */