mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
- Fixed nodes were not rebuilt after loading broken extended nodes.
This commit is contained in:
parent
f108a106c9
commit
638c49fe0f
1 changed files with 7 additions and 1 deletions
|
@ -746,6 +746,11 @@ bool MapLoader::LoadExtendedNodes (FileReader &dalump, uint32_t id)
|
||||||
catch (const CRecoverableError& err)
|
catch (const CRecoverableError& err)
|
||||||
{
|
{
|
||||||
Printf("Error loading nodes: %s.\n", err.what());
|
Printf("Error loading nodes: %s.\n", err.what());
|
||||||
|
|
||||||
|
ForceNodeBuild = true;
|
||||||
|
Level->subsectors.Clear();
|
||||||
|
Level->segs.Clear();
|
||||||
|
Level->nodes.Clear();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -758,7 +763,8 @@ bool MapLoader::LoadExtendedNodes (FileReader &dalump, uint32_t id)
|
||||||
catch (CRecoverableError &error)
|
catch (CRecoverableError &error)
|
||||||
{
|
{
|
||||||
Printf("Error loading nodes: %s\n", error.GetMessage());
|
Printf("Error loading nodes: %s\n", error.GetMessage());
|
||||||
|
|
||||||
|
ForceNodeBuild = true;
|
||||||
Level->subsectors.Clear();
|
Level->subsectors.Clear();
|
||||||
Level->segs.Clear();
|
Level->segs.Clear();
|
||||||
Level->nodes.Clear();
|
Level->nodes.Clear();
|
||||||
|
|
Loading…
Reference in a new issue