summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-06-21 17:36:46 +0000
committerfrosch <frosch@openttd.org>2010-06-21 17:36:46 +0000
commitbe5e880f0b16fcef7da27d5b6570d11200e9b5fe (patch)
tree91c614b98455edd3e761081b158960e88809ed7a /src/train_cmd.cpp
parente931399b316c245a559962a8fcc7c2f14d4abfd4 (diff)
downloadopenttd-be5e880f0b16fcef7da27d5b6570d11200e9b5fe.tar.xz
(svn r20006) -Fix: Trains should also have running cost while slowing down for stop.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp2
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++;