1
0

cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement()

This commit is contained in:
andrew
2014-05-12 17:05:09 +03:00
parent 6cb3483954
commit b3d2b5b2c9
8 changed files with 143 additions and 10 deletions

View File

@@ -370,6 +370,11 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI)
if (m_Health <= 0)
{
KilledBy(a_TDI.Attacker);
if (a_TDI.Attacker != NULL)
{
a_TDI.Attacker->Killed(this);
}
}
return true;
}