# HG changeset patch # User unc0rr # Date 1304082310 -14400 # Node ID 9edb5ae12cfb7fb385e5f57a686659534b814573 # Parent d0461bd6d45b69055e75653d72917781e866e707 Call statistics routine after setting the damage diff -r d0461bd6d45b -r 9edb5ae12cfb hedgewars/uGears.pas --- a/hedgewars/uGears.pas Fri Apr 29 03:31:50 2011 +0200 +++ b/hedgewars/uGears.pas Fri Apr 29 17:05:10 2011 +0400 @@ -1042,7 +1042,6 @@ Gear^.LastDamage := AttackerHog; Gear^.Hedgehog^.Team^.Clan^.Flawless:= false; - uStats.HedgehogDamaged(Gear, AttackerHog); HHHurt(Gear^.Hedgehog, Source); AddDamageTag(hwRound(Gear^.X), hwRound(Gear^.Y), Damage, Gear^.Hedgehog^.Team^.Clan^.Color); tmpDmg:= min(Damage, max(0,Gear^.Health-Gear^.Damage)); @@ -1084,6 +1083,8 @@ Gear^.Hedgehog:= AttackerHog; end; inc(Gear^.Damage, Damage); + + uStats.HedgehogDamaged(Gear, AttackerHog); ScriptCall('onGearDamage', Gear^.UID, Damage); end;