*sigh*
authornemo
Wed, 17 Aug 2011 11:07:03 -0400
changeset 5588 cf643996c1ee
parent 5586 3bb02b92df7d
child 5590 efd92458c75c
child 5591 c6c94a9a8a82
*sigh*
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Wed Aug 17 10:58:00 2011 -0400
+++ b/hedgewars/uGears.pas	Wed Aug 17 11:07:03 2011 -0400
@@ -1356,7 +1356,7 @@
                     dx.isNegative:= false;
                     dy:= Gear^.Y-t^.Y;
                     dy.isNegative:= false;
-                    if r - hwRound(dx+dy) < 25 then
+                    if hwRound(dx+dy) < 25+r then
                         begin
                         dist:= hwRound(Distance(dx, dy));
                         dmg:= ModifyDamage(min(r - dist, 25), t);
@@ -1382,7 +1382,7 @@
                     dx.isNegative:= false;
                     dy:= Gear^.Y-t^.Y;
                     dy.isNegative:= false;
-                    if r - hwRound(dx+dy) < 25 then
+                    if hwRound(dx+dy) < 25+r then
                         begin
                         dist:= hwRound(Distance(dx, dy));
                         dmg:= ModifyDamage(min(r - dist, 25), t);