changeset 15363:5ea4f4fa8ea2 draft

(svn r20006) -Fix: Trains should also have running cost while slowing down for stop.
author frosch <frosch@openttd.org>
date Mon, 21 Jun 2010 17:36:46 +0000
parents 834b4f9842c2
children f26e59384274
files src/train_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -3955,7 +3955,7 @@
 	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++;