From 72f9121f5d154c19f0ab2967a580c65818f2f2f2 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 2419f419b..20f73ea69 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 c221aee90..7fa504e90 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -3866,6 +3866,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 @@ -3995,6 +3996,7 @@ static void Command_Addfile(void) else SendNetXCmd(XD_ADDFILE, buf, buf_p - buf); } +#endif/*TESTERS*/ } static void Got_RequestAddfilecmd(UINT8 **cp, INT32 playernum)