- recalculate the line deltas if a nodebuild is needed

One potential cause is moving around vertices in which case these do not match anymore. (patch by Graf)
This commit is contained in:
drfrag 2019-04-02 13:07:26 +02:00
parent e2c2837aa5
commit ea688fc613

View file

@ -3541,6 +3541,11 @@ void P_SetupLevel(const char *lumpname, int position, bool newGame)
if (ForceNodeBuild)
{
BuildGLNodes = RequireGLNodes || multiplayer || demoplayback || demorecording || genglnodes;
// In case the compatibility handler made changes to the map's layout
for(auto &line : level.lines)
{
P_AdjustLine(&line);
}
startTime = I_msTime();
TArray<FNodeBuilder::FPolyStart> polyspots, anchors;