# HG changeset patch # User unc0rr # Date 1296412388 -10800 # Node ID bf7f2c1cc2359da6d630d0a247d29110d0410775 # Parent b2006a9f0fbcda3750a9a2aadb90d1ad3d862c49 Fix ApplyDamage accepting Damage == 0 diff -r b2006a9f0fbc -r bf7f2c1cc235 hedgewars/uGears.pas --- a/hedgewars/uGears.pas Sun Jan 30 06:56:12 2011 +0100 +++ b/hedgewars/uGears.pas Sun Jan 30 21:33:08 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);