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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user