fixed so your team gets -1 if you kill yourself. drawback, team looses one point when you switch team as well. good enough for now

This commit is contained in:
Magnus Auvinen 2009-01-11 14:16:49 +00:00
parent c2c90982fd
commit 172463b2bb

View file

@ -14,14 +14,12 @@ int GAMECONTROLLER_TDM::on_character_death(class CHARACTER *victim, class PLAYER
{
GAMECONTROLLER::on_character_death(victim, killer, weapon);
if(weapon >= 0)
{
// do team scoring
if(killer == victim->player || killer->team == victim->player->team)
teamscore[killer->team&1]--; // klant arschel
else
teamscore[killer->team&1]++; // good shit
}
// do team scoring
if(killer == victim->player || killer->team == victim->player->team)
teamscore[killer->team&1]--; // klant arschel
else
teamscore[killer->team&1]++; // good shit
return 0;
}