summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorMikko Tiusanen <ams@daug.net>2014-06-08 14:23:58 +0300
committerMikko Tiusanen <ams@daug.net>2014-06-08 14:23:58 +0300
commit9c083e0fb3212c62d276210b81bbb85436687319 (patch)
treef7a61bccb9008dae9944ce5161c8ab5e1589fd22 /src/game
parent0d03f4cda5f3a095bf3137a3937e1c50061f6b85 (diff)
Automatic map switch now based on number of human/alien players only.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 4312444..bd3fef0 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -2192,11 +2192,11 @@ void CheckExitRules( void )
G_MapLog_Result( 'a' );
}
else if( level.time > level.suddenDeathBeginTime/2 &&
- level.numConnectedClients == 0 )
+ level.numAlienClients == 0 && level.numHumanClients == 0 )
{
- // Sudden death started but no clients connected
+ // Close to sudden death started but no clients connected
level.lastWin = TEAM_NONE;
- trap_SendServerCommand( -1, "print \"Half way to sudden death reached with no connected clients\n\"" );
+ trap_SendServerCommand( -1, "print \"Half way to sudden death reached with empty teams\n\"" );
trap_SetConfigstring( CS_WINNER, "Stalemate" );
LogExit( "Timelimit hit." );
G_MapLog_Result( 't' );