From 7e2230cfbd419119ebb06b739a8d3949a563eb73 Mon Sep 17 00:00:00 2001 From: Mikko Tiusanen Date: Tue, 29 Jul 2014 00:44:27 +0300 Subject: Automatic level change at half-way to sd no longer kicks in when sd is disabled. --- src/game/g_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/g_main.c') diff --git a/src/game/g_main.c b/src/game/g_main.c index 70c3e49..dff13fe 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -2229,7 +2229,8 @@ void CheckExitRules( void ) LogExit( "Aliens win." ); G_MapLog_Result( 'a' ); } - else if( level.time > level.suddenDeathBeginTime/2 && + else if( level.suddenDeathBeginTime != 0 && + level.time > level.suddenDeathBeginTime/2 && level.numAlienClients == 0 && level.numHumanClients == 0 ) { // Close to sudden death started but no clients connected -- cgit