--- 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);