Added some more boilerplate to MapManager.CompileLump()

This commit is contained in:
MaxED 2015-01-29 08:18:11 +00:00
parent 3c9ea89d4d
commit 3575ffc0a3

View file

@ -1580,6 +1580,13 @@ namespace CodeImp.DoomBuilder
ScriptConfiguration scriptconfig;
if(config.MapLumps[lumpname].ScriptBuild)
{
//mxd. More boilderplate
if(!General.CompiledScriptConfigs.ContainsKey(General.Map.Options.ScriptCompiler))
{
General.ShowErrorMessage("Unable to compile lump '" + lumpname + "'. Unable to find required script compiler configuration ('" + General.Map.Options.ScriptCompiler + "').", MessageBoxButtons.OK);
return false;
}
scriptconfig = General.CompiledScriptConfigs[General.Map.Options.ScriptCompiler];
}
else