diff options
author | bjarni <bjarni@openttd.org> | 2004-12-09 21:46:56 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2004-12-09 21:46:56 +0000 |
commit | 02bf3ed5c07451ae860bf4a197fca00908eb4293 (patch) | |
tree | dcab8de4962e2d4d20e640fa781a69cd6480a973 /vehicle.c | |
parent | 93a4dbda4b10d8b26c575e4b16d4505ea881dae5 (diff) | |
download | openttd-02bf3ed5c07451ae860bf4a197fca00908eb4293.tar.xz |
(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--)
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |