Update to 12.2

This commit is contained in:
dP
2022-04-02 15:34:00 +03:00
parent 76f735ed58
commit 269352680c
87 changed files with 1685 additions and 549 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