1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-15 02:29:10 +00:00

Cleanup: Update stored date when it is shifted

This commit is contained in:
James Ross
2023-12-22 13:52:52 +00:00
parent 84ea74d8b2
commit 96b63852aa

View File

@@ -771,6 +771,7 @@ void Vehicle::ShiftDates(TimerGameCalendar::Date interval)
this->date_of_last_service = std::max(this->date_of_last_service + interval, TimerGameCalendar::Date(0));
/* date_of_last_service_newgrf is not updated here as it must stay stable
* for vehicles outside of a depot. */
this->first_order_last_departure += interval.base() * Ticks::DAY_TICKS;
}
/**