summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-05-06 13:45:58 +0000
committerfrosch <frosch@openttd.org>2013-05-06 13:45:58 +0000
commit65855af0842ab9585612d7c02348c1ddccce2167 (patch)
tree63df2d4997179859e86e7789df5d73153aed1b97 /src
parentb9528c3aa01c4d28cf58514e6371db9931ce6400 (diff)
downloadopenttd-65855af0842ab9585612d7c02348c1ddccce2167.tar.xz
(svn r25222) -Change: Unify the behaviour of Vehicle::tick_counter between RV and trains by incrementing it also for articulated RV parts.
Diffstat (limited to 'src')
-rw-r--r--src/roadveh_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
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);