diff options
author | bjarni <bjarni@openttd.org> | 2005-01-24 18:21:23 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-01-24 18:21:23 +0000 |
commit | 6e2abeba5e63496a138f04df72454f2e0dbb8852 (patch) | |
tree | ffbebf8eb6c1381bace6bf694fd4523cfc90ce6e /vehicle.c | |
parent | eae329f332d44eba4dc91ca1edd40daa24047200 (diff) | |
download | openttd-6e2abeba5e63496a138f04df72454f2e0dbb8852.tar.xz |
(svn r1640) fix: now helicopters will use a hangar in schedule to be replaced in, even if they are only set to service there. Since helicopters are serviced at helipads, they will only go there if they needs to be replaced or renewed.
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -194,6 +194,7 @@ static Vehicle *InitializeVehicle(Vehicle *v) v->string_id = 0; v->next_shared = NULL; v->prev_shared = NULL; + v->set_for_replacement = false; /* random_bits is used to pick out a random sprite for vehicles which are technical the same (newgrf stuff). Because RandomRange() results in desyncs, and because it does @@ -1422,6 +1423,7 @@ int32 CmdReplaceVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2) Engine *e; e = DEREF_ENGINE(new_engine_type); + v->set_for_replacement = false; v->reliability = e->reliability; v->reliability_spd_dec = e->reliability_spd_dec; v->age = 0; |