merge
authorsheepluva
Mon, 24 Nov 2014 04:16:28 +0100
changeset 10546 339a005eab14
parent 10543 decba1e6099f (current diff)
parent 10545 d347ffa7e372 (diff)
child 10547 cc439790ebae
merge
--- a/hedgewars/uGearsHandlersMess.pas	Mon Nov 24 04:14:06 2014 +0100
+++ b/hedgewars/uGearsHandlersMess.pas	Mon Nov 24 04:16:28 2014 +0100
@@ -3093,14 +3093,14 @@
         begin
         for i:= 0 to hogs.size - 1 do
             with hogs.ar^[i]^ do
-                begin
-                if hogs.ar^[i] <> CurrentHedgehog^.Gear then
+                if (hogs.ar^[i] <> CurrentHedgehog^.Gear) and (Hedgehog^.Effects[heFrozen] = 0)  then
                     begin
                     dX:= _50 * cGravity * (Gear^.X - X) / _25;
                     dY:= -_450 * cGravity;
                     Active:= true;
                     end
-                end;
+                else if Hedgehog^.Effects[heFrozen] > 255 then
+                    Hedgehog^.Effects[heFrozen]:= 255
         end ;
         AfterAttack;
         DeleteGear(Gear);