fix secret exit in PWADs

This commit is contained in:
Roman Fomin 2022-04-12 23:26:47 +07:00
parent 9b7cbdceee
commit 05c26aabd2

View File

@ -1977,8 +1977,7 @@ void D_DoomMain(void)
// Check for wolf levels // Check for wolf levels
{ {
int lumpnum = W_CheckNumForName("map31"); haswolflevels = (W_CheckNumForName("map31") >= 0);
haswolflevels = (lumpnum >= 0 && W_IsIWADLump(lumpnum));
} }
// Moved after WAD initialization because we are checking the COMPLVL lump // Moved after WAD initialization because we are checking the COMPLVL lump