hedgewars/uGearsHandlersMess.pas
changeset 14079 a173557250a3
parent 14074 a3506c6a4cbe
child 14120 7bb0e27910aa
--- a/hedgewars/uGearsHandlersMess.pas	Fri Nov 02 14:29:24 2018 +0100
+++ b/hedgewars/uGearsHandlersMess.pas	Fri Nov 02 14:33:05 2018 +0100
@@ -2104,7 +2104,7 @@
         tY:=Gear^.Y-targ^.Y;
         // allow escaping - should maybe flag this too
         if (GameTicks > Gear^.FlightTime + 10000) or
-            (not ((abs(hwRound(tX)) + abs(hwRound(tY)) < Gear^.Angle * 9) and
+            (not ((tX.Round + tY.Round < Gear^.Angle * 9) and
                   (hwRound(hwSqr(tX) + hwSqr(tY)) < sqr(Gear^.Angle * 6))))
              then
             targ:= nil