From 0513ad2b773edf32e078ecdd2361afab7e7ae150 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Thu, 16 Jan 2020 15:54:52 +0100 Subject: [PATCH] add a -nodehlump parameter to avoid loading DEHACKED lumps embedded into WAD files --- Source/d_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/d_main.c b/Source/d_main.c index 2b2d1b5f..39c40961 100644 --- a/Source/d_main.c +++ b/Source/d_main.c @@ -1352,6 +1352,12 @@ static void D_ProcessDehPreincludes(void) static void D_ProcessDehInWad(int i) { + // [FG] avoid loading DEHACKED lumps embedded into WAD files + if (M_CheckParm("-nodehlump")) + { + return; + } + if (i >= 0) { D_ProcessDehInWad(lumpinfo[i].next);