Vehicles age at calendar speed in wallclock mode

This commit is contained in:
Jonathan G Rennison
2024-02-16 20:23:23 +00:00
parent b940fa9466
commit 7938844d1d
5 changed files with 43 additions and 4 deletions

View File

@@ -6889,7 +6889,7 @@ static void CheckIfTrainNeedsService(Train *v)
/** Update day counters of the train vehicle. */
void Train::OnNewDay()
{
AgeVehicle(this);
if (!EconTime::UsingWallclockUnits()) AgeVehicle(this);
if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this);
}