set hasGone to prevent resurrection.
authornemo
Sat, 30 Oct 2010 21:48:47 -0400
changeset 4037 0f8ec120e90d
parent 4036 69e535a0e43a
child 4038 8972dd38bbad
set hasGone to prevent resurrection.
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sat Oct 30 21:39:50 2010 -0400
+++ b/hedgewars/uGears.pas	Sat Oct 30 21:48:47 2010 -0400
@@ -601,7 +601,10 @@
                 if (team^.Clan^.Teams[i]^.Hedgehogs[0].Gear <> nil) then 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
             end;
         inc(KilledHHs);
         RecountTeamHealth(team)