# HG changeset patch
# User unC0Rr
# Date 1541165585 -3600
# Node ID a173557250a3667c733feb562e12807c33ed1344
# Parent  bf40b5f938b0845f838fe95a4f98585b19c41597
abs(hwRound()) is nonsense

diff -r bf40b5f938b0 -r a173557250a3 hedgewars/uGearsHandlersMess.pas
--- 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