--- 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);