Changeset - r20222:b6dcc486274a
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2013-05-06 13:45:58
frosch@openttd.org
(svn r25222) -Change: Unify the behaviour of Vehicle::tick_counter between RV and trains by incrementing it also for articulated RV parts.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/roadveh_cmd.cpp
Show inline comments
 
@@ -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() cons
 

	
 
bool RoadVehicle::Tick()
 
{
 
	this->tick_counter++;
 

	
 
	if (this->IsFrontEngine()) {
 
		if (!(this->vehstatus & VS_STOPPED)) this->running_ticks++;
 
		return RoadVehController(this);
0 comments (0 inline, 0 general)