From 4b17db9315dc22b6fd6098f495c8ea99e1ae9702 Mon Sep 17 00:00:00 2001 From: Marisa the Magician Date: Wed, 24 Sep 2025 18:14:51 +0200 Subject: [PATCH] small oops: -norun arg has to be checked for earlier. --- src/d_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 60f26ba66..edbac17d7 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -3331,6 +3331,7 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector& 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& 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)