Run most "daily" vehicle tasks at a fixed frequency at day lengths >= 8
This includes: running costs, track sharing costs, breakdown checks, servicing checks, order checks
This commit is contained in:
@@ -483,10 +483,16 @@ void Aircraft::OnNewDay()
|
||||
|
||||
if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this);
|
||||
|
||||
AgeVehicle(this);
|
||||
}
|
||||
|
||||
void Aircraft::OnPeriodic()
|
||||
{
|
||||
if (!this->IsNormalAircraft()) return;
|
||||
|
||||
CheckOrders(this);
|
||||
|
||||
CheckVehicleBreakdown(this);
|
||||
AgeVehicle(this);
|
||||
CheckIfAircraftNeedsService(this);
|
||||
|
||||
if (this->running_ticks == 0) return;
|
||||
|
Reference in New Issue
Block a user