From e9c43fe90801096518a9864c37b0c35cd9045fa1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 12 Aug 2010 06:43:12 +0000 Subject: [PATCH] - fixed: P_LoopSidedefs must be called again before setting up the polyobjects if the nodes were rebuilt. The original data is no longer valid in case vertexes were merged by the node builder. SVN r2516 (trunk) --- src/p_setup.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index a324a393a..50af213b5 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -3844,6 +3844,9 @@ void P_SetupLevel (char *lumpname, int position) P_SpawnSpecials (); times[16].Clock(); + // The old sidedef looping data is no longer valid if the nodes were rebuilt + // and vertexes merged so it has to be redone before setting up the polyobjects. + if (ForceNodeBuild) P_LoopSidedefs (); PO_Init (); // Initialize the polyobjs times[16].Unclock();