From d52eebb829c9bf757968d6f4a66734a31bb1f61d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 3 Feb 2021 21:30:36 +0000 Subject: [PATCH] Set value of cached_uncapped_decel in original acceleration model This is to avoid false positive cache mismatch messages --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 59204d3be4..8ecd1ee6fd 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -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: {