hedgewars/GSHandlers.inc
branchicegun
changeset 8565 a431fa208a45
parent 8563 4d9d8287e601
child 8570 cbd25e677446
--- a/hedgewars/GSHandlers.inc	Sun Feb 24 23:07:46 2013 -0500
+++ b/hedgewars/GSHandlers.inc	Mon Feb 25 00:00:39 2013 -0500
@@ -5244,19 +5244,15 @@
                 hogs := GearsNear(int2hwFloat(Target.X), int2hwFloat(Target.Y), gtHedgehog, Gear^.Radius*2);
                 if hogs.size > 0 then
                     for i:= 0 to hogs.size - 1 do
-                    begin
                         if hogs.ar^[i] <> HHGear then
-                        begin
                             if GameTicks mod 5 = 0 then 
-                            if hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] < 256 then
-                                hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] := hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] + 1
-                            else if hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] = 256 then
                                 begin
-                                hogs.ar^[i]^.Hedgehog^.Effects[heFrozen]:= 100000;
-                                hogs.ar^[i]^.Active:= true
+                                hogs.ar^[i]^.Active:= true;
+                                if hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] < 256 then
+                                    hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] := hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] + 1
+                                else if hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] = 256 then
+                                    hogs.ar^[i]^.Hedgehog^.Effects[heFrozen]:= 100000
                                 end;
-                        end;                        
-                    end;
                 inc(Pos)
             end
             else if (t > 400) and ((gY > cWaterLine) or