diff options
author | peter1138 <peter1138@openttd.org> | 2010-01-31 12:56:32 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2010-01-31 12:56:32 +0000 |
commit | 2331ccd589cdef298659bf2ab4f29a833601bd9d (patch) | |
tree | f18d0f226b40a81d3971a77e5c2a21d49306148b | |
parent | 990cbe626324fff9e08c85da825aab91f1f1432d (diff) | |
download | openttd-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.cpp | 1 |
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; |