Fix ambigious abs in uGearsHandlersMess
authorWuzzy <Wuzzy2@mail.ru>
Fri, 02 Nov 2018 14:05:08 +0100
changeset 14074 a3506c6a4cbe
parent 14073 ff6e67066fd0
child 14075 df0e86b2630f
Fix ambigious abs in uGearsHandlersMess
hedgewars/uGearsHandlersMess.pas
--- a/hedgewars/uGearsHandlersMess.pas	Fri Nov 02 13:19:38 2018 +0100
+++ b/hedgewars/uGearsHandlersMess.pas	Fri Nov 02 14:05:08 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(tX.Round) + abs(tY.Round) < Gear^.Angle * 9) and
+            (not ((abs(hwRound(tX)) + abs(hwRound(tY)) < Gear^.Angle * 9) and
                   (hwRound(hwSqr(tX) + hwSqr(tY)) < sqr(Gear^.Angle * 6))))
              then
             targ:= nil