# HG changeset patch
# User sheepluva
# Date 1418290429 -3600
# Node ID cdce07f5a0117a68863dd37f7658b5dbf45382db
# Parent  ae9ad773569047c4bca54b7f514a8c329c127506
cont.

diff -r ae9ad7735690 -r cdce07f5a011 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;