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