mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fixed a missing check if killer is alive in tdm
This commit is contained in:
parent
f0e09f50d9
commit
61671f3bcd
|
@ -17,7 +17,7 @@ int CGameControllerTDM::OnCharacterDeath(class CCharacter *pVictim, class CPlaye
|
|||
IGameController::OnCharacterDeath(pVictim, pKiller, Weapon);
|
||||
|
||||
|
||||
if(Weapon != WEAPON_GAME)
|
||||
if(pKiller && Weapon != WEAPON_GAME)
|
||||
{
|
||||
// do team scoring
|
||||
if(pKiller == pVictim->GetPlayer() || pKiller->GetTeam() == pVictim->GetPlayer()->GetTeam())
|
||||
|
|
Loading…
Reference in a new issue