fix previous commit

This commit is contained in:
Roman Fomin 2023-12-29 21:20:04 +07:00
parent 8b487b1ced
commit 5adc01c272

View File

@ -864,7 +864,7 @@ static void CheckIWAD(const char *iwadname)
return; return;
} }
if (strncmp(header.identification, "IWAD", 4) || if (strncmp(header.identification, "IWAD", 4) &&
strncmp(header.identification, "PWAD", 4)) strncmp(header.identification, "PWAD", 4))
{ {
fclose(file); fclose(file);
@ -957,7 +957,7 @@ static boolean FileContainsMaps(const char *filename)
break; break;
} }
if (strncmp(header.identification, "IWAD", 4) || if (strncmp(header.identification, "IWAD", 4) &&
strncmp(header.identification, "PWAD", 4)) strncmp(header.identification, "PWAD", 4))
{ {
break; break;