Set value of cached_uncapped_decel in original acceleration model

This is to avoid false positive cache mismatch messages
pull/217/head
Jonathan G Rennison 4 years ago
parent c1f1b5f3b3
commit d52eebb829

@ -1026,7 +1026,7 @@ void Train::UpdateAcceleration()
switch (_settings_game.vehicle.train_acceleration_model) {
default: NOT_REACHED();
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;
case AM_REALISTIC: {

Loading…
Cancel
Save