From 638c49fe0f73d7ab1cf12b6abc11bb11c8e201fc Mon Sep 17 00:00:00 2001 From: drfrag Date: Fri, 29 Jan 2021 19:29:42 +0100 Subject: [PATCH] - Fixed nodes were not rebuilt after loading broken extended nodes. --- src/maploader/maploader.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/maploader/maploader.cpp b/src/maploader/maploader.cpp index 1b712a449e..7faaa01d1d 100644 --- a/src/maploader/maploader.cpp +++ b/src/maploader/maploader.cpp @@ -746,6 +746,11 @@ bool MapLoader::LoadExtendedNodes (FileReader &dalump, uint32_t id) catch (const CRecoverableError& err) { Printf("Error loading nodes: %s.\n", err.what()); + + ForceNodeBuild = true; + Level->subsectors.Clear(); + Level->segs.Clear(); + Level->nodes.Clear(); return false; } } @@ -758,7 +763,8 @@ bool MapLoader::LoadExtendedNodes (FileReader &dalump, uint32_t id) catch (CRecoverableError &error) { Printf("Error loading nodes: %s\n", error.GetMessage()); - + + ForceNodeBuild = true; Level->subsectors.Clear(); Level->segs.Clear(); Level->nodes.Clear();