diff --git a/Build/Configurations/Includes/Doom_misc.cfg b/Build/Configurations/Includes/Doom_misc.cfg index 26e810e93c32f2a6f406adbd7fc4c6d7fee445a4..6e516bc4c13bd133264c26b92c4a69ed4c8b8664 100644 --- a/Build/Configurations/Includes/Doom_misc.cfg +++ b/Build/Configurations/Includes/Doom_misc.cfg @@ -280,6 +280,11 @@ doommaplumpnames nodebuild = true; allowempty = false; } + + BEHAVIOR //mxd + { + forbidden = true; + } } diff --git a/Source/Core/Windows/OpenMapOptionsForm.cs b/Source/Core/Windows/OpenMapOptionsForm.cs index 6c5dd8494c305fa77830d81a01b106a7914bd530..8130b8cad06aed23381a2b1e0217d1d5e7852231 100644 --- a/Source/Core/Windows/OpenMapOptionsForm.cs +++ b/Source/Core/Windows/OpenMapOptionsForm.cs @@ -271,8 +271,14 @@ namespace CodeImp.DoomBuilder.Windows while(((scanindex + checkoffset) < wadfile.Lumps.Count) && maplumpnames.Contains(wadfile.Lumps[scanindex + checkoffset].Name)) { - // Count the lump when it is marked as required lumpname = wadfile.Lumps[scanindex + checkoffset].Name; + //mxd. Lump cannot present in current map format, fail this check + if(cfg.ReadSetting("maplumpnames." + lumpname + ".forbidden", false)) { + lumpsfound = -1; + break; + } + + // Count the lump when it is marked as required if(cfg.ReadSetting("maplumpnames." + lumpname + ".required", false)) lumpsfound++; // Check the next lump