Refactor CallVehicleTicks vehicle loop
This commit is contained in:
@@ -380,6 +380,8 @@ CommandCost CmdBuildAircraft(TileIndex tile, DoCommandFlag flags, const Engine *
|
||||
u->SetNext(w);
|
||||
w->UpdatePosition();
|
||||
}
|
||||
|
||||
InvalidateVehicleTickCaches();
|
||||
}
|
||||
|
||||
return CommandCost();
|
||||
@@ -2131,8 +2133,6 @@ bool Aircraft::Tick()
|
||||
{
|
||||
if (!this->IsNormalAircraft()) return true;
|
||||
|
||||
PerformanceAccumulator framerate(PFE_GL_AIRCRAFT);
|
||||
|
||||
this->tick_counter++;
|
||||
|
||||
if (!(this->vehstatus & VS_STOPPED)) this->running_ticks++;
|
||||
|
Reference in New Issue
Block a user