diff --git a/src/p_setup.cpp b/src/p_setup.cpp index 3f7f91454..d8e86a9cd 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -3803,8 +3803,10 @@ void P_SetupLevel (char *lumpname, int position) unsigned int startTime=0, endTime=0; + bool BuildGLNodes; if (ForceNodeBuild) { + BuildGLNodes = am_textured || multiplayer || demoplayback || demorecording || genglnodes; startTime = I_FPSTime (); TArray polyspots, anchors; @@ -3819,7 +3821,6 @@ void P_SetupLevel (char *lumpname, int position) // We need GL nodes if am_textured is on. // In case a sync critical game mode is started, also build GL nodes to avoid problems // if the different machines' am_textured setting differs. - bool BuildGLNodes = am_textured || multiplayer || demoplayback || demorecording || genglnodes; FNodeBuilder builder (leveldata, polyspots, anchors, BuildGLNodes); delete[] vertexes; builder.Extract (nodes, numnodes, @@ -3832,6 +3833,7 @@ void P_SetupLevel (char *lumpname, int position) } else { + BuildGLNodes = false; // Older ZDBSPs had problems with compressed sidedefs and assigned wrong sides to the segs if both sides were the same sidedef. for(i=0;i