merge
authorunc0rr
Sun, 30 Jan 2011 21:33:39 +0300
changeset 4887 39f300fdbc64
parent 4885 bf7f2c1cc235 (diff)
parent 4886 e3e5362a308e (current diff)
child 4888 3c96e99468c5
merge
--- a/hedgewars/uGears.pas	Sun Jan 30 19:05:31 2011 +0100
+++ b/hedgewars/uGears.pas	Sun Jan 30 21:33:39 2011 +0300
@@ -1004,7 +1004,9 @@
     vampDmg, tmpDmg, i: Longword;
     vg: PVisualGear;
 begin
-    if (Gear^.Kind = gtHedgehog) and (Damage>=1) then
+  if Damage = 0 then exit; // nothing to apply
+
+    if (Gear^.Kind = gtHedgehog) then
     begin
     uStats.HedgehogDamaged(Gear, AttackerHog);
     HHHurt(Gear^.Hedgehog, Source);