From 5ed55aca3dc919590d474503ef1de58bca105a22 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 2 Jan 2022 21:50:23 -0800 Subject: [PATCH] Disable wad loading in TESTERS build --- src/d_main.c | 2 ++ src/d_netcmd.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/d_main.c b/src/d_main.c index b578373f8..4776f4e77 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1256,6 +1256,7 @@ void D_SRB2Main(void) // Do this up here so that WADs loaded through the command line can use ExecCfg COM_Init(); +#ifndef TESTERS // add any files specified on the command line with -file wadfile // to the wad list if (!((M_GetUrlProtocolArg() || M_CheckParm("-connect")) && !M_CheckParm("-server"))) @@ -1273,6 +1274,7 @@ void D_SRB2Main(void) } } } +#endif // get map from parms diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 775cf8598..faecdae4d 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -3850,6 +3850,7 @@ static void Got_RunSOCcmd(UINT8 **cp, INT32 playernum) */ static void Command_Addfile(void) { +#ifndef TESTERS size_t argc = COM_Argc(); // amount of arguments total size_t curarg; // current argument index @@ -3979,6 +3980,7 @@ static void Command_Addfile(void) else SendNetXCmd(XD_ADDFILE, buf, buf_p - buf); } +#endif/*TESTERS*/ } static void Got_RequestAddfilecmd(UINT8 **cp, INT32 playernum)