# HG changeset patch # User sheepluva # Date 1436832118 -7200 # Node ID 745b0fb017c12636c2dc301580efbda6f5b705b2 # Parent 5b37f240edf81527f8a620b892b3f646ac8935c4# Parent 01c8e95d2265f55602a63647b507675b3cee916f merge diff -r 5b37f240edf8 -r 745b0fb017c1 hedgewars/uGearsList.pas --- a/hedgewars/uGearsList.pas Tue Jul 14 01:56:47 2015 +0200 +++ b/hedgewars/uGearsList.pas Tue Jul 14 02:01:58 2015 +0200 @@ -733,10 +733,12 @@ k:= true; if not k then for i:= 0 to Pred(team^.Clan^.TeamsNumber) do - begin - team^.Clan^.Teams[i]^.hasGone:= true; - TeamGoneEffect(team^.Clan^.Teams[i]^) - end + with team^.Clan^.Teams[i]^ do + for t:= 0 to cMaxHHIndex do + if Hedgehogs[t].Gear <> nil then + Hedgehogs[t].Gear^.Health:= 0 + else if (Hedgehogs[t].GearHidden <> nil) then + Hedgehogs[t].GearHidden^.Health:= 0 // hog is still hidden. if tardis should return though, lua, eh... end; // should be not CurrentHedgehog, but hedgehog of the last gear which caused damage to this hog