summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 40ab6487..a1525a9a 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -1314,7 +1314,8 @@ void CalculateRanks( void )
}
}
- if( level.clients[ i ].sess.sessionTeam != TEAM_SPECTATOR )
+ if( level.clients[ i ].pers.teamSelection == PTE_HUMANS ||
+ level.clients[ i ].pers.teamSelection == PTE_ALIENS )
{
level.numNonSpectatorClients++;
@@ -1324,9 +1325,9 @@ void CalculateRanks( void )
level.numPlayingClients++;
level.numVotingClients++;
- if( level.clients[ i ].ps.stats[ STAT_PTEAM ] == PTE_HUMANS )
+ if( level.clients[ i ].pers.teamSelection == PTE_HUMANS )
level.numteamVotingClients[ 0 ]++;
- else if( level.clients[ i ].ps.stats[ STAT_PTEAM ] == PTE_ALIENS )
+ else if( level.clients[ i ].pers.teamSelection == PTE_ALIENS )
level.numteamVotingClients[ 1 ]++;
if( level.follow1 == -1 )