tdm: fix team-scoring on teammate-kill; ticket #557

This commit is contained in:
Dominik Geyer 2008-11-04 11:55:26 +00:00
parent e1807ea08a
commit d37c54a995

View file

@ -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