- recalculate the line deltas if a nodebuild is needed

One potential cause is moving around vertices in which case these do not match anymore
This commit is contained in:
Christoph Oelckers 2019-01-16 05:27:48 +01:00
parent 8872125f96
commit f22121a9df
1 changed files with 6 additions and 1 deletions

View File

@ -3105,6 +3105,11 @@ void MapLoader::LoadLevel(MapData *map, const char *lumpname, int position)
if (ForceNodeBuild) if (ForceNodeBuild)
{ {
BuildGLNodes = true; BuildGLNodes = true;
// In case the compatibility handler made changes to the map's layout
for(auto &line : Level->lines)
{
line.AdjustLine();
}
startTime = I_msTime(); startTime = I_msTime();
TArray<FNodeBuilder::FPolyStart> polyspots, anchors; TArray<FNodeBuilder::FPolyStart> polyspots, anchors;