cont.
authorsheepluva
Thu, 11 Dec 2014 10:33:49 +0100
changeset 10654 cdce07f5a011
parent 10653 ae9ad7735690
child 10655 1c85a442bd56
cont.
hedgewars/uGearsUtils.pas
--- a/hedgewars/uGearsUtils.pas	Thu Dec 11 10:22:51 2014 +0100
+++ b/hedgewars/uGearsUtils.pas	Thu Dec 11 10:33:49 2014 +0100
@@ -102,14 +102,15 @@
     dmgRadius:= Radius;
 dmgBase:= dmgRadius + cHHRadius div 2;*)
 dmgBase:= Radius shl 1 + cHHRadius div 2;
-fX:= int2hwFloat(X);
-fY:= int2hwFloat(Y);
-Gear:= GearsList;
 
 // we might have to run twice if weWrap is enabled
 wrap:= false;
 repeat;
 
+fX:= int2hwFloat(X);
+fY:= int2hwFloat(Y);
+Gear:= GearsList;
+
 while Gear <> nil do
     begin
     dmg:= 0;