(svn r998) now vehicles are serviced both when entering and when leaving depots to prevent that vehicles might need service when leaving after a long stay (ln--)

This commit is contained in:
bjarni
2004-12-09 21:46:56 +00:00
parent 567ad3b5db
commit c6cd07e2e3
6 changed files with 19 additions and 12 deletions

View File

@@ -15,6 +15,12 @@
#define INVALID_COORD (-0x8000)
#define GEN_HASH(x,y) (((x & 0x1F80)>>7) + ((y & 0xFC0)))
void VehicleServiceInDepot(Vehicle *v)
{
v->date_of_last_service = _date;
v->breakdowns_since_last_service = 0;
v->reliability = _engines[v->engine_type].reliability;
}
Order UnpackOldOrder(uint16 packed)
{