mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
tdm: fix team-scoring on teammate-kill; ticket #557
This commit is contained in:
parent
e1807ea08a
commit
d37c54a995
|
@ -17,7 +17,7 @@ int GAMECONTROLLER_TDM::on_character_death(class CHARACTER *victim, class PLAYER
|
|||
if(weapon >= 0)
|
||||
{
|
||||
// do team scoring
|
||||
if(killer == victim->player)
|
||||
if(killer == victim->player || killer->team == victim->player->team)
|
||||
teamscore[killer->team&1]--; // klant arschel
|
||||
else
|
||||
teamscore[killer->team&1]++; // good shit
|
||||
|
|
Loading…
Reference in a new issue