hedgewars/uGearsUtils.pas
changeset 7272 71df899c4163
parent 7190 aa8d68817c32
child 7357 06454899d0d2
--- a/hedgewars/uGearsUtils.pas	Sat Jun 23 21:37:47 2012 -0400
+++ b/hedgewars/uGearsUtils.pas	Sat Jun 23 22:39:00 2012 -0400
@@ -107,7 +107,7 @@
                         tdX:= Gear^.X-fX;
                         tdY:= Gear^.Y-fY;
                         if hwRound(hwAbs(tdX)+hwAbs(tdY)) < dmgBase then
-                            dmg:= dmgBase - max(hwRound(Distance(tdX, tdY)),Gear^.Radius);
+                            dmg:= dmgBase - hwRound(Distance(tdX, tdY));
                         if dmg > 1 then
                             begin
                             dmg:= ModifyDamage(min(dmg div 2, Radius), Gear);