added tracking of deaths as well as kills

This commit is contained in:
Chris Forbes
2010-05-02 13:31:56 +12:00
parent 32c73fa72f
commit 94b2055eb2
4 changed files with 7 additions and 3 deletions

View File

@@ -185,8 +185,9 @@ namespace OpenRA
if (Health <= 0)
{
Health = 0;
if (attacker.Owner != null)
attacker.Owner.Kills++;
attacker.Owner.Kills++;
Owner.Deaths++;
if (RemoveOnDeath)
World.AddFrameEndTask(w => w.Remove(this));