mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Set value of cached_uncapped_decel in original acceleration model
This is to avoid false positive cache mismatch messages
This commit is contained in:
parent
c1f1b5f3b3
commit
d52eebb829
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user