forgot this loop icegun
authornemo
Mon, 25 Feb 2013 20:45:13 -0500
branchicegun
changeset 8580 7fa0f75bce57
parent 8579 d18bc19d780a
child 8581 f3bc24ef756e
forgot this loop
hedgewars/uTeams.pas
--- a/hedgewars/uTeams.pas	Mon Feb 25 19:19:41 2013 -0500
+++ b/hedgewars/uTeams.pas	Mon Feb 25 20:45:13 2013 -0500
@@ -192,7 +192,7 @@
                 end
         until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil) or (PrevTeam = CurrTeam) or ((CurrTeam = TagTeamIndex) and ((GameFlags and gfTagTeam) <> 0));
         end
-until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil);
+until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil) and (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Effects[heFrozen] = 0);
 
 SwitchCurrentHedgehog(@(CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog]));
 {$IFDEF USE_TOUCH_INTERFACE}