1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-17 01:12:39 +01:00

Fix #12010: Use economy timer for vehicle stats minimum age, not calendar (#12142)

This commit is contained in:
Tyler Trahan
2024-03-09 09:38:52 -05:00
committed by Kuhnovic
parent b4f72e6ce6
commit a3ce25b487
13 changed files with 42 additions and 15 deletions

View File

@@ -4186,6 +4186,8 @@ void Train::OnNewCalendarDay()
/** Economy day handler. */
void Train::OnNewEconomyDay()
{
EconomyAgeVehicle(this);
if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this);
if (this->IsFrontEngine()) {