mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-21 19:40:58 +00:00
Reload level headers when opening another map inside current WAD
This commit is contained in:
parent
c4d0f0a5d9
commit
c2d8a09cc7
1 changed files with 7 additions and 0 deletions
|
@ -2735,10 +2735,17 @@ namespace CodeImp.DoomBuilder.Data
|
|||
}
|
||||
|
||||
//mxd. This updates mapinfo class only
|
||||
//sphere: Also reloads all SOC files for level headers
|
||||
internal void ReloadMapInfoPartial()
|
||||
{
|
||||
Dictionary<int, string> spawnnums, doomednums;
|
||||
LoadMapInfo(out spawnnums, out doomednums);
|
||||
LoadSOCThings();
|
||||
|
||||
// Load SRB2 map information from parsed level headers
|
||||
string mapname = General.Map.Options.LevelName.ToLowerInvariant();
|
||||
if (soc.MapHeaders.ContainsKey(mapname))
|
||||
mapinfo = soc.MapHeaders[mapname];
|
||||
}
|
||||
|
||||
//mxd. This loads (Z)MAPINFO
|
||||
|
|
Loading…
Reference in a new issue