From c2d8a09cc783ab5ed1b55ddf2fe3a17364e0ca38 Mon Sep 17 00:00:00 2001 From: spherallic Date: Mon, 17 Jun 2024 22:59:29 +0200 Subject: [PATCH] Reload level headers when opening another map inside current WAD --- Source/Core/Data/DataManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Core/Data/DataManager.cs b/Source/Core/Data/DataManager.cs index 8ed212bf..d7aa048d 100755 --- a/Source/Core/Data/DataManager.cs +++ b/Source/Core/Data/DataManager.cs @@ -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 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