Update to 12.2

This commit is contained in:
dP
2022-04-02 17:32:19 +03:00
87 changed files with 1718 additions and 580 deletions

View File

@@ -763,6 +763,16 @@ uint32 Vehicle::GetGRFID() const
return this->GetEngine()->GetGRFID();
}
/**
* Shift all dates by given interval.
* This is useful if the date has been modified with the cheat menu.
* @param interval Number of days to be added or substracted.
*/
void Vehicle::ShiftDates(int interval)
{
this->date_of_last_service += interval;
}
/**
* Handle the pathfinding result, especially the lost status.
* If the vehicle is now lost and wasn't previously fire an