summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2010-01-31 12:56:32 +0000
committerpeter1138 <peter1138@openttd.org>2010-01-31 12:56:32 +0000
commit2331ccd589cdef298659bf2ab4f29a833601bd9d (patch)
treef18d0f226b40a81d3971a77e5c2a21d49306148b
parent990cbe626324fff9e08c85da825aab91f1f1432d (diff)
downloadopenttd-2331ccd589cdef298659bf2ab4f29a833601bd9d.tar.xz
(svn r18971) -Fix: Train acceleration for original acceleration model wasn't updated if the train's power changed.
-rw-r--r--src/train_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 6eecf5e5b..7f903f497 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -3442,6 +3442,7 @@ static void TrainController(Train *v, Vehicle *nomove)
if (GetTileRailType(gp.new_tile) != GetTileRailType(gp.old_tile)) {
v->First()->PowerChanged();
+ v->First()->UpdateAcceleration();
}
v->track = chosen_track;