diff --git a/src/d_main.c b/src/d_main.c index 1542a842..7a94c2e5 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -864,7 +864,7 @@ static void CheckIWAD(const char *iwadname) return; } - if (strncmp(header.identification, "IWAD", 4) || + if (strncmp(header.identification, "IWAD", 4) && strncmp(header.identification, "PWAD", 4)) { fclose(file); @@ -957,7 +957,7 @@ static boolean FileContainsMaps(const char *filename) break; } - if (strncmp(header.identification, "IWAD", 4) || + if (strncmp(header.identification, "IWAD", 4) && strncmp(header.identification, "PWAD", 4)) { break;