From ece980d372741046cb0253777ff2ee95e15bf6cd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 27 Aug 2010 17:34:25 +0000 Subject: [PATCH] - fixed check for GL nodebuild SVN r2613 (trunk) --- src/p_setup.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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