From b3cbb5af2a304acb77aaee3884b461b589098e93 Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Tue, 6 Feb 2007 04:21:50 +0000 Subject: * (bug 3020) put a 1 minute maximum on intermission time to prevent infinite intermissions when only afk or malicious players are on the non-spec teams. --- src/game/g_main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game') diff --git a/src/game/g_main.c b/src/game/g_main.c index 16b40c0c..6a217bdc 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1779,6 +1779,13 @@ void CheckIntermissionExit( void ) if( level.time < level.intermissiontime + 5000 ) return; + // never let intermission go on for over 1 minute + if( level.time > level.intermissiontime + 60000 ) + { + ExitLevel( ); + return; + } + // if nobody wants to go, clear timer if( !ready && numPlayers ) { -- cgit