summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index c842ff5fa..73606af18 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -735,7 +735,10 @@ static bool TrainAccelerationModelChanged(int32 p1)
{
Train *t;
FOR_ALL_TRAINS(t) {
- if (IsFrontEngine(t)) UpdateTrainAcceleration(t);
+ if (IsFrontEngine(t)) {
+ t->tcache.cached_max_curve_speed = GetTrainCurveSpeedLimit(t);
+ UpdateTrainAcceleration(t);
+ }
}
return true;