mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
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:
parent
c2c90982fd
commit
172463b2bb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue