fix return name and bound type
authoralfadur
Sun, 14 Oct 2018 18:58:39 +0300
changeset 13901 98eaf1fe1f6b
parent 13900 b6248c4c2f23
child 13902 f0a64d932a57
fix return name and bound type
hedgewars/uGearsUtils.pas
--- a/hedgewars/uGearsUtils.pas	Sun Oct 14 18:52:00 2018 +0300
+++ b/hedgewars/uGearsUtils.pas	Sun Oct 14 18:58:39 2018 +0300
@@ -1056,8 +1056,7 @@
 
 function CheckGearNearImpl(Kind: TGearType; X, Y: hwFloat; rX, rY: LongInt; exclude: PGear): PGear;
 var t: PGear;
-    width, dX, dY: hwFloat;
-    bound: LongInt;
+    width, bound, dX, dY: hwFloat;
     isHit: Boolean;
 begin
     t:= GearsList;
@@ -1087,14 +1086,14 @@
 
             if isHit then
             begin
-                CheckGearNear:= t;
+                CheckGearNearImpl:= t;
                 exit;
             end;
         end;
         t:= t^.NextGear
     end;
 
-    CheckGearNear:= nil
+    CheckGearNearImpl:= nil
 end;
 
 function CheckGearNear(Kind: TGearType; X, Y: hwFloat; rX, rY: LongInt): PGear;