changeset 8677 | afb2b467f801 |
parent 8036 | 89740f927254 |
child 8833 | c13ebed437cb |
child 8865 | dd4035ee0f12 |
--- a/hedgewars/uAI.pas Wed Mar 06 12:55:48 2013 -0500 +++ b/hedgewars/uAI.pas Wed Mar 06 13:03:11 2013 -0500 @@ -414,7 +414,7 @@ // find another hog in team repeat itHedgehog:= Succ(itHedgehog) mod CurrentTeam^.HedgehogsNumber; - until (itHedgehog = currHedgehogIndex) or (CurrentTeam^.Hedgehogs[itHedgehog].Gear <> nil); + until (itHedgehog = currHedgehogIndex) or ((CurrentTeam^.Hedgehogs[itHedgehog].Gear <> nil) and (CurrentTeam^.Hedgehogs[itHedgehog].Effects[heFrozen]=0)); inc(switchesNum);