fix score calculation during spectating

This commit is contained in:
ac-stef
2016-08-06 23:39:13 +02:00
parent be4855cdcc
commit 37ce06cd1c
+1 -1
View File
@@ -120,7 +120,7 @@ void teamflagscores(int &team1, int &team2)
{
teamscores[team_base(discscores[i].team)].addscore(discscores[i]);
}
if(!watchingdemo) teamscores[team_base(player1->team)].addplayer(player1);
if(!watchingdemo && player1->team != TEAM_SPECT) teamscores[team_base(player1->team)].addplayer(player1);
team1 = teamscores[0].flagscore;
team2 = teamscores[1].flagscore;
}