small oops: -norun arg has to be checked for earlier.

This commit is contained in:
Mari the Deer 2025-09-24 18:14:51 +02:00
commit 4b17db9315

View file

@ -3331,6 +3331,7 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
allwads.shrink_to_fit();
SetMapxxFlag();
bool norun = Args->CheckParm("-norun");
if (!(restart || norun))
{
// Note: this has to happen after the file system has been initialized (backends may load shaders during initialization)
@ -3346,7 +3347,6 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
int max_progress = TexMan.GuesstimateNumTextures();
int per_shader_progress = 0;//screen->GetShaderCount()? (max_progress / 10 / screen->GetShaderCount()) : 0;
bool norun = Args->CheckParm("-norun");
bool nostartscreen = RunningAsTool || batchrun || restart || Args->CheckParm("-join") || Args->CheckParm("-host") || norun;
if (GameStartupInfo.Type == FStartupInfo::DefaultStartup)