From b3938d3ecdce0ea1999747604a82fd4d28740d06 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Tue, 5 May 2026 01:12:20 -0400 Subject: [PATCH] Revert "Why did this move up again" This reverts commit 424a50832dd2c686c11d8e580afda8c399f9774c. --- src/d_main.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 4cdec2b92..1bf3b5d79 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -1638,6 +1638,24 @@ void D_SRB2Main(void) COM_AddCommand("crash", Command_crash); #endif + // add any files specified on the command line with -file wadfile + // to the wad list + if (!((M_GetUrlProtocolArg() || M_CheckParm("-connect")) && !M_CheckParm("-server"))) + { + if (M_CheckParm("-file")) + { + // the parms after p are wadfile/lump names, + // until end of parms or another - preceded parm + while (M_IsNextParm()) + { + const char *s = M_GetNextParm(); + + if (s) // Check for NULL? + D_AddFile(startuppwads, s); + } + } + } + // get map from parms if (M_CheckParm("-server") || dedicated) @@ -1675,24 +1693,6 @@ void D_SRB2Main(void) I_RegisterSysCommands(); - // add any files specified on the command line with -file wadfile - // to the wad list - if (!((M_GetUrlProtocolArg() || M_CheckParm("-connect")) && !M_CheckParm("-server"))) - { - if (M_CheckParm("-file")) - { - // the parms after p are wadfile/lump names, - // until end of parms or another - preceded parm - while (M_IsNextParm()) - { - const char *s = M_GetNextParm(); - - if (s) // Check for NULL? - D_AddFile(startuppwads, s); - } - } - } - #ifdef HWRENDER // Lactozilla: Add every hardware mode CVAR and CCMD. // Has to be done before the configuration file loads,