engine: add -nobackgroundlevel command-line argument

This commit is contained in:
nillerusr 2023-02-20 20:07:23 +03:00
parent 9075ccd9e4
commit 6a8da7084b

View File

@ -2367,7 +2367,8 @@ bool CL_ShouldLoadBackgroundLevel( const CCommand &args )
// don't load the map in developer or console mode // don't load the map in developer or console mode
if ( developer.GetInt() || if ( developer.GetInt() ||
CommandLine()->CheckParm("-console") || CommandLine()->CheckParm("-console") ||
CommandLine()->CheckParm("-dev") ) CommandLine()->CheckParm("-dev") ||
CommandLine()->CheckParm("-nobackgroundlevel") )
return false; return false;
// don't load the map if we're going straight into a level // don't load the map if we're going straight into a level