hedgewars/uGearsHedgehog.pas
changeset 9672 8663d299ba62
parent 9670 1954f692e8c6
child 9675 295636ec930a
--- a/hedgewars/uGearsHedgehog.pas	Sun Nov 03 22:39:00 2013 +0400
+++ b/hedgewars/uGearsHedgehog.pas	Sun Nov 03 14:45:07 2013 -0500
@@ -1266,7 +1266,7 @@
     if (Gear^.Message and (gmAllStoppable or gmLJump or gmHJump) = 0)
     and (Gear^.State and (gstHHJumping or gstHHHJump or gstAttacking) = 0)
     and ((Gear^.Hedgehog = nil) or ((Gear^.Hedgehog^.Effects[heFrozen] = 0) or (Gear^.Hedgehog^.Effects[heFrozen] > 255)))
-    and (not Gear^.dY.isNegative) and (TurnTimeLeft > 0) and (TestCollisionYwithGear(Gear, 1) and lfIce <> 0) then
+    and (not Gear^.dY.isNegative) and TurnClockActive and (TestCollisionYwithGear(Gear, 1) and lfIce <> 0) then
         begin
         slope:= CalcSlopeBelowGear(Gear);
         if slope.QWordValue > 730144440 then // ignore mild slopes