From 65855af0842ab9585612d7c02348c1ddccce2167 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 6 May 2013 13:45:58 +0000 Subject: (svn r25222) -Change: Unify the behaviour of Vehicle::tick_counter between RV and trains by incrementing it also for articulated RV parts. --- src/roadveh_cmd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 32e180d83..44336ac45 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1501,7 +1501,6 @@ again: static bool RoadVehController(RoadVehicle *v) { /* decrease counters */ - v->tick_counter++; v->current_order_time++; if (v->reverse_ctr != 0) v->reverse_ctr--; @@ -1576,6 +1575,8 @@ Money RoadVehicle::GetRunningCost() const bool RoadVehicle::Tick() { + this->tick_counter++; + if (this->IsFrontEngine()) { if (!(this->vehstatus & VS_STOPPED)) this->running_ticks++; return RoadVehController(this); -- cgit v1.2.3-54-g00ecf