summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c10
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' );
+ }
}
/*