Improved check for skins and maps in the same WAD

The corresponding warning is shown for Doom I mods too. Good example of it is Hyena TC: http://www.doomworld.com/idgames/index.php?file=levels/doom/Ports/megawads/hyena.zip
Reduced chance of false positive for the mentioned warning
This commit is contained in:
alexey.lysiuk 2015-01-31 13:14:30 +02:00
parent b69edbbec1
commit cce5066bea

View file

@ -581,9 +581,18 @@ void FWadFile::SkinHack ()
namespc++; namespc++;
} }
} }
if (lump->Name[0] == 'M' && if ((lump->Name[0] == 'M' &&
lump->Name[1] == 'A' && lump->Name[1] == 'A' &&
lump->Name[2] == 'P') lump->Name[2] == 'P' &&
lump->Name[3] >= '0' && lump->Name[3] <= '9' &&
lump->Name[4] >= '0' && lump->Name[4] <= '9' &&
lump->Name[5] >= '\0')
||
(lump->Name[0] == 'E' &&
lump->Name[1] >= '0' && lump->Name[1] <= '9' &&
lump->Name[2] == 'M' &&
lump->Name[3] >= '0' && lump->Name[3] <= '9' &&
lump->Name[4] >= '\0'))
{ {
hasmap = true; hasmap = true;
} }