From acb1fb2e308d427476638e74038341cb0779ed25 Mon Sep 17 00:00:00 2001 From: bjarni Date: Sat, 19 Mar 2005 21:16:22 +0000 Subject: (svn r2024) -Fix: [autoreplace] reverted all changes involving v->set_for_replacement as they caused desyncs. The bad sideeffect of this is that now no vehicle will automatically go to a depot anymore just because it is set to be autoreplaced. We will have to find a better way to solve this problem. Revisions reverted: 1640, 1707, 1709, 1710, 1712(but not the cheat prevention in this one) --- vehicle.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'vehicle.c') diff --git a/vehicle.c b/vehicle.c index 9faf679e6..3aaea4497 100644 --- a/vehicle.c +++ b/vehicle.c @@ -212,7 +212,6 @@ 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 @@ -1433,7 +1432,6 @@ 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; -- cgit v1.2.3-54-g00ecf