diff options
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r-- | src/game/g_main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index 8dd53b29..9f756c61 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1299,15 +1299,19 @@ void CalculateRanks( void ) if ( level.clients[ i ].pers.connected != CON_DISCONNECTED ) { level.sortedClients[ level.numConnectedClients ] = i; + level.numConnectedClients++; P[ i ] = (char)'0' + level.clients[ i ].pers.teamSelection; if( level.clients[ i ].pers.connected != CON_CONNECTED ) continue; - level.numConnectedClients++; + + level.numVotingClients++; if( level.clients[ i ].pers.teamSelection != PTE_NONE ) { level.numPlayingClients++; - level.numNonSpectatorClients++; + if( level.clients[ i ].sess.sessionTeam != TEAM_SPECTATOR ) + level.numNonSpectatorClients++; + if( level.clients[ i ].pers.teamSelection == PTE_ALIENS ) { level.numAlienClients++; @@ -1323,7 +1327,6 @@ void CalculateRanks( void ) } } } - level.numVotingClients = level.numConnectedClients; level.numteamVotingClients[ 0 ] = level.numHumanClients; level.numteamVotingClients[ 1 ] = level.numAlienClients; P[ i + 1 ] = '\0'; |