mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
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:
parent
b69edbbec1
commit
cce5066bea
1 changed files with 12 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue