hedgewars/uTeams.pas
branchicegun
changeset 8580 7fa0f75bce57
parent 8560 134a098235fa
child 8655 9fa380a18a65
--- 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}