Reload level headers when opening another map inside current WAD

This commit is contained in:
spherallic 2024-06-17 22:59:29 +02:00
parent c4d0f0a5d9
commit c2d8a09cc7

View file

@ -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