hud flagscore fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7315 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2013-03-05 22:01:08 +00:00
parent 87782dcca9
commit fe10f86b21
+4
View File
@@ -116,6 +116,10 @@ void teamflagscores(int &team1, int &team2)
{
teamscores[team_base(players[i]->team)].addplayer(players[i]);
}
loopv(discscores) if(discscores[i].team != TEAM_SPECT)
{
teamscores[team_base(discscores[i].team)].addscore(discscores[i]);
}
if(!watchingdemo) teamscores[team_base(player1->team)].addplayer(player1);
team1 = teamscores[0].flagscore;
team2 = teamscores[1].flagscore;