diff options
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r-- | src/game/g_main.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index 77de3f01..5d10285f 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1115,21 +1115,23 @@ void CalculateRanks( void ) level.sortedClients[ level.numConnectedClients ] = i; level.numConnectedClients++; - //TA: so we know when the game ends and for team leveling - if( level.clients[ i ].ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) + if( !( level.clients[ i ].ps.pm_flags & PMF_FOLLOW ) ) { - level.numAlienClients++; - if( level.clients[ i ].sess.sessionTeam != TEAM_SPECTATOR ) - level.numLiveAlienClients++; - } + //so we know when the game ends and for team leveling + if( level.clients[ i ].ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) + { + level.numAlienClients++; + if( level.clients[ i ].sess.sessionTeam != TEAM_SPECTATOR ) + level.numLiveAlienClients++; + } - if( level.clients[ i ].ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) - { - level.numHumanClients++; - if( level.clients[ i ].sess.sessionTeam != TEAM_SPECTATOR ) - level.numLiveHumanClients++; + if( level.clients[ i ].ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) + { + level.numHumanClients++; + if( level.clients[ i ].sess.sessionTeam != TEAM_SPECTATOR ) + level.numLiveHumanClients++; + } } - //////////////// if( level.clients[ i ].sess.sessionTeam != TEAM_SPECTATOR ) { |