# HG changeset patch # User nemo # Date 1341756211 14400 # Node ID 06454899d0d26abdee6493af38c2a27e6ce42337 # Parent b79b545bd568420853e4757df840f2c1ac7525de Score AI resurrection as a kill. These values will not be the same as the in-game scoring, since in-game scoring doesn't count friendlies. diff -r b79b545bd568 -r 06454899d0d2 hedgewars/uGearsUtils.pas --- a/hedgewars/uGearsUtils.pas Sat Jul 07 23:22:03 2012 +0200 +++ b/hedgewars/uGearsUtils.pas Sun Jul 08 10:03:31 2012 -0400 @@ -446,6 +446,10 @@ sparkles: PVisualGear; gX, gY: LongInt; begin + if (Gear^.LastDamage <> nil) then + uStats.HedgehogDamaged(Gear, Gear^.LastDamage, 0, true) + else + uStats.HedgehogDamaged(Gear, CurrentHedgehog, 0, true); AttackBar:= 0; gear^.dX := _0; gear^.dY := _0;