From 2fc41734557a50d4efe3708b0540bccad1f59429 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 28 Jun 2021 09:03:32 +0200 Subject: [PATCH] make missing IWAD tag non-fatal This prepares for additional IWAD support, w.g. HacX or REKKR. --- Source/d_main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/d_main.c b/Source/d_main.c index a618749a..9c77bbd8 100644 --- a/Source/d_main.c +++ b/Source/d_main.c @@ -707,7 +707,6 @@ static void CheckIWAD(const char *iwadname, filelump_t lump; wadinfo_t header; const char *n = lump.name; - boolean noiwad = 0; if (!fp) I_Error("Can't open IWAD: %s\n",iwadname); @@ -716,8 +715,8 @@ static void CheckIWAD(const char *iwadname, if (fread(&header, 1, sizeof header, fp) != sizeof header || header.identification[0] != 'I' || header.identification[1] != 'W' || header.identification[2] != 'A' || header.identification[3] != 'D') - // [FG] the BFG Edition IWADs have a PWAD signature - ++noiwad; + // [FG] make non-fatal + fprintf(stderr,"IWAD tag not present: %s\n",iwadname); fseek(fp, LONG(header.infotableofs), SEEK_SET); @@ -741,8 +740,6 @@ static void CheckIWAD(const char *iwadname, } fclose(fp); - if (noiwad && !bfgedition) - I_Error("IWAD tag not present: %s\n",iwadname); *gmission = doom; *hassec = false;