summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/g_main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 77aa54b1..abde0daf 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -1544,7 +1544,7 @@ wait 10 seconds before going on.
*/
void CheckIntermissionExit( void )
{
- int ready, notReady;
+ int ready, notReady, numPlayers;
int i;
gclient_t *cl;
int readyMask;
@@ -1560,6 +1560,7 @@ void CheckIntermissionExit( void )
ready = 0;
notReady = 0;
readyMask = 0;
+ numPlayers = 0;
for( i = 0; i < g_maxclients.integer; i++ )
{
cl = level.clients + i;
@@ -1580,6 +1581,8 @@ void CheckIntermissionExit( void )
}
else
notReady++;
+
+ numPlayers++;
}
trap_SetConfigstring( CS_CLIENTS_READY, va( "%d", readyMask ) );
@@ -1589,7 +1592,7 @@ void CheckIntermissionExit( void )
return;
// if nobody wants to go, clear timer
- if( !ready )
+ if( !ready && numPlayers )
{
level.readyToExit = qfalse;
return;