summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2007-03-23 22:04:58 +0000
committerTony J. White <tjw@tjw.org>2007-03-23 22:04:58 +0000
commitbec564b10d65313f4030766e6b275d1198e22585 (patch)
tree974c6805dc659c39808207177a326aaebf35fda7 /src
parent217ecf2b071af89ef623461041e0762ad2fe6b68 (diff)
* (bug 3012) teamvote tally was was counting following specs, but not dead
teammates
Diffstat (limited to 'src')
-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 )