mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 05:41:45 +00:00
Fixed an issue that allowed to open Hexen format maps with a Doom format game configuration when using the "Open Map in Current WAD..:" feature.
This commit is contained in:
parent
cdce5c0a8b
commit
cb12c83877
1 changed files with 9 additions and 1 deletions
|
@ -111,7 +111,15 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
{
|
||||
// Count the lump when it is marked as required
|
||||
string lumpname = wadfile.Lumps[scanindex + checkoffset].Name;
|
||||
if(ci.Configuration.ReadSetting("maplumpnames." + lumpname + ".required", false))
|
||||
|
||||
// Lump cannot be present in current map format, fail this check
|
||||
if (ci.Configuration.ReadSetting("maplumpnames." + lumpname + ".forbidden", false))
|
||||
{
|
||||
lumpsfound = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
if (ci.Configuration.ReadSetting("maplumpnames." + lumpname + ".required", false))
|
||||
lumpsfound++;
|
||||
|
||||
// Check the next lump
|
||||
|
|
Loading…
Reference in a new issue