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:
@@ -2228,6 +2228,12 @@ void RoadVehicle::OnNewDay()
|
||||
if (!this->IsFrontEngine()) return;
|
||||
|
||||
if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this);
|
||||
}
|
||||
|
||||
void RoadVehicle::OnPeriodic()
|
||||
{
|
||||
if (!this->IsFrontEngine()) return;
|
||||
|
||||
if (this->blocked_ctr == 0) CheckVehicleBreakdown(this);
|
||||
|
||||
CheckIfRoadVehNeedsService(this);
|
||||
|
Reference in New Issue
Block a user