hedgewars/uGearsHandlersRope.pas
changeset 14303 6015b74eea55
parent 13994 818969052920
child 14674 4aec7d17ef7d
--- a/hedgewars/uGearsHandlersRope.pas	Fri Nov 23 21:22:26 2018 +0100
+++ b/hedgewars/uGearsHandlersRope.pas	Fri Nov 23 15:54:23 2018 -0500
@@ -50,7 +50,7 @@
        ((TestCollisionXwithGear(HHGear, 1) <> 0) or (TestCollisionXwithGear(HHGear, -1) <> 0))  then
         begin
         HHGear^.X:= tX;
-        HHGear^.dX.isNegative:= hwRound(tX) > LongInt(leftX) + HHGear^.Radius * 2
+        HHGear^.dX.isNegative:= hwRound(tX) > leftX + HHGear^.Radius * 2
         end;
 
     if (HHGear^.Hedgehog^.CurAmmoType = amParachute) and (HHGear^.dY > _0_39) then
@@ -160,7 +160,7 @@
         PlaySound(sndRopeRelease);
         RopeDeleteMe(Gear, HHGear);
         HHGear^.X:= tX;
-        HHGear^.dX.isNegative:= hwRound(tX) > LongInt(leftX) + HHGear^.Radius * 2;
+        HHGear^.dX.isNegative:= hwRound(tX) > leftX + HHGear^.Radius * 2;
         exit
         end;