Mercurial > hg > openttd
changeset 4621:cec0458559b3 draft
(svn r6479) -Fix r6424: FS#348 Plane autoreplace glitch
Now the num_engines array is updated for the buying player when merging two players
The incorrect caches aren't saved so no savegames will contain incorrect data due to this bug
author | bjarni <bjarni@openttd.org> |
---|---|
date | Tue, 19 Sep 2006 12:48:12 +0000 |
parents | 390593ff345d |
children | e70d25964985 |
files | economy.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/economy.c +++ b/economy.c @@ -312,6 +312,7 @@ DeleteVehicle(v); } else { v->owner = new_player; + if (IsEngineCountable(v)) GetPlayer(new_player)->num_engines[v->engine_type]++; switch (v->type) { case VEH_Train: if (IsFrontEngine(v)) v->unitnumber = ++num_train; break; case VEH_Road: v->unitnumber = ++num_road; break;