diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-06-08 13:50:54 +0300 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-06-08 13:50:54 +0300 |
commit | f4c9d4eab1992a1c4849b95db7e864ad3264ed1f (patch) | |
tree | 605b01f73df26095bd93c50b7fdd0f93e716e540 | |
parent | 00fc79978bf84ab9cc88fda7c7ec4ea00cdb5b7b (diff) |
Automatically switch level at start of sd when no clients connected.
-rw-r--r-- | src/game/g_main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index 755aee1..3ce85f0 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -2191,6 +2191,16 @@ void CheckExitRules( void ) LogExit( "Aliens win." ); G_MapLog_Result( 'a' ); } + else if( level.time > level.suddenDeathBeginTime && + level.numConnectedClients == 0 ) + { + // Sudden death started but no clients connected + level.lastWin = TEAM_NONE; + trap_SendServerCommand( -1, "print \"Sudden death started with no connected clients\n\"" ); + trap_SetConfigstring( CS_WINNER, "Stalemate" ); + LogExit( "Timelimit hit." ); + G_MapLog_Result( 't' ); + } } /* |