diff options
author | frosch <frosch@openttd.org> | 2010-06-21 17:36:46 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-21 17:36:46 +0000 |
commit | be5e880f0b16fcef7da27d5b6570d11200e9b5fe (patch) | |
tree | 91c614b98455edd3e761081b158960e88809ed7a | |
parent | e931399b316c245a559962a8fcc7c2f14d4abfd4 (diff) | |
download | openttd-be5e880f0b16fcef7da27d5b6570d11200e9b5fe.tar.xz |
(svn r20006) -Fix: Trains should also have running cost while slowing down for stop.
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 0edfa8314..3e5020561 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3955,7 +3955,7 @@ bool Train::Tick() this->tick_counter++; if (this->IsFrontEngine()) { - if (!(this->vehstatus & VS_STOPPED)) this->running_ticks++; + if (!(this->vehstatus & VS_STOPPED) || this->cur_speed > 0) this->running_ticks++; this->current_order_time++; |