mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 20:02:48 +00:00
Visplane Explorer: added some additional error reporting when loading a map fails
This commit is contained in:
parent
3ae5b1e27d
commit
926fcd486d
1 changed files with 2 additions and 2 deletions
|
@ -102,8 +102,8 @@ namespace CodeImp.DoomBuilder.Plugins.VisplaneExplorer
|
|||
|
||||
// Load the map
|
||||
bool isHexen = General.Map.HEXEN;
|
||||
if(VPO_LoadWAD(context, filename) != 0) throw new Exception("VPO is unable to read this file.");
|
||||
if(VPO_OpenMap(context, mapname, ref isHexen) != 0) throw new Exception("VPO is unable to open this map.");
|
||||
if(VPO_LoadWAD(context, filename) != 0) throw new Exception("VPO is unable to read this file:" + (VPO_GetError(context) ?? "<unknown error>"));
|
||||
if(VPO_OpenMap(context, mapname, ref isHexen) != 0) throw new Exception("VPO is unable to open this map:" + (VPO_GetError(context) ?? "<unknown error>"));
|
||||
VPO_OpenDoorSectors(context, BuilderPlug.InterfaceForm.OpenDoors ? 1 : -1); //mxd
|
||||
|
||||
// Processing
|
||||
|
|
Loading…
Reference in a new issue