mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Added some more boilerplate to MapManager.CompileLump()
This commit is contained in:
parent
3c9ea89d4d
commit
3575ffc0a3
1 changed files with 7 additions and 0 deletions
|
@ -1580,6 +1580,13 @@ namespace CodeImp.DoomBuilder
|
||||||
ScriptConfiguration scriptconfig;
|
ScriptConfiguration scriptconfig;
|
||||||
if(config.MapLumps[lumpname].ScriptBuild)
|
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];
|
scriptconfig = General.CompiledScriptConfigs[General.Map.Options.ScriptCompiler];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue