Codechange: Use proper date types in various places (#11177)
This commit is contained in:
@@ -761,7 +761,7 @@ uint32_t Vehicle::GetGRFID() const
|
||||
*/
|
||||
void Vehicle::ShiftDates(int interval)
|
||||
{
|
||||
this->date_of_last_service = std::max(this->date_of_last_service + interval, 0);
|
||||
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. */
|
||||
}
|
||||
|
Reference in New Issue
Block a user