Give monorail/maglev larger realistic braking deceleration limits

This commit is contained in:
Jonathan G Rennison
2021-02-03 21:22:09 +00:00
parent 4e1b1bc91e
commit c1f1b5f3b3
3 changed files with 11 additions and 4 deletions

View File

@@ -83,6 +83,11 @@ void DeleteVisibleTrain(Train *v);
void CheckBreakdownFlags(Train *v);
void GetTrainSpriteSize(EngineID engine, uint &width, uint &height, int &xoffs, int &yoffs, EngineImageType image_type);
inline int GetTrainRealisticBrakingTargetDecelerationLimit(int acceleration_type)
{
return 120 + (acceleration_type * 48);
}
/** Variables that are cached to improve performance and such */
struct TrainCache {
/* Cached wagon override spritegroup */