Set value of cached_uncapped_decel in original acceleration model

This is to avoid false positive cache mismatch messages
This commit is contained in:
Jonathan G Rennison 2021-02-03 21:30:36 +00:00
parent c1f1b5f3b3
commit d52eebb829

View File

@ -1026,7 +1026,7 @@ void Train::UpdateAcceleration()
switch (_settings_game.vehicle.train_acceleration_model) { switch (_settings_game.vehicle.train_acceleration_model) {
default: NOT_REACHED(); default: NOT_REACHED();
case AM_ORIGINAL: case AM_ORIGINAL:
this->tcache.cached_deceleration = Clamp((this->acceleration * 7) / 2, 1, 200); this->tcache.cached_uncapped_decel = this->tcache.cached_deceleration = Clamp((this->acceleration * 7) / 2, 1, 200);
break; break;
case AM_REALISTIC: { case AM_REALISTIC: {