From 05c26aabd2fa33be4d87eac0097aee78e9b41aa5 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Tue, 12 Apr 2022 23:26:47 +0700 Subject: [PATCH] fix secret exit in PWADs --- Source/d_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/d_main.c b/Source/d_main.c index 55ff22ac..3ae80993 100644 --- a/Source/d_main.c +++ b/Source/d_main.c @@ -1977,8 +1977,7 @@ void D_DoomMain(void) // Check for wolf levels { - int lumpnum = W_CheckNumForName("map31"); - haswolflevels = (lumpnum >= 0 && W_IsIWADLump(lumpnum)); + haswolflevels = (W_CheckNumForName("map31") >= 0); } // Moved after WAD initialization because we are checking the COMPLVL lump