mirror of https://github.com/OpenTTD/OpenTTD
(svn r25222) -Change: Unify the behaviour of Vehicle::tick_counter between RV and trains by incrementing it also for articulated RV parts.
parent
b9528c3aa0
commit
65855af084
|
@ -1501,7 +1501,6 @@ again:
|
||||||
static bool RoadVehController(RoadVehicle *v)
|
static bool RoadVehController(RoadVehicle *v)
|
||||||
{
|
{
|
||||||
/* decrease counters */
|
/* decrease counters */
|
||||||
v->tick_counter++;
|
|
||||||
v->current_order_time++;
|
v->current_order_time++;
|
||||||
if (v->reverse_ctr != 0) v->reverse_ctr--;
|
if (v->reverse_ctr != 0) v->reverse_ctr--;
|
||||||
|
|
||||||
|
@ -1576,6 +1575,8 @@ Money RoadVehicle::GetRunningCost() const
|
||||||
|
|
||||||
bool RoadVehicle::Tick()
|
bool RoadVehicle::Tick()
|
||||||
{
|
{
|
||||||
|
this->tick_counter++;
|
||||||
|
|
||||||
if (this->IsFrontEngine()) {
|
if (this->IsFrontEngine()) {
|
||||||
if (!(this->vehstatus & VS_STOPPED)) this->running_ticks++;
|
if (!(this->vehstatus & VS_STOPPED)) this->running_ticks++;
|
||||||
return RoadVehController(this);
|
return RoadVehController(this);
|
||||||
|
|
Loading…
Reference in New Issue