From b6cdcddf30c4498415d9bfe036eae10045135fbf Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Mon, 18 Jan 2016 10:30:56 -0500 Subject: [PATCH] - Fixed: Static mirrors in hexen format maps were broken. --- src/p_setup.cpp | 8 +++----- src/p_udmf.cpp | 5 ----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index f92e1b9d2..fc929540d 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -2068,6 +2068,9 @@ void P_FinishLoadingLineDef(line_t *ld, int alpha) ld->special = 0; break; } + + // [ZZ] check initial portal link + P_CheckPortal(ld); } // killough 4/4/98: delay using sidedefs until they are loaded void P_FinishLoadingLineDefs () @@ -2177,11 +2180,6 @@ void P_LoadLineDefs (MapData * map) if (level.flags2 & LEVEL2_WRAPMIDTEX) ld->flags |= ML_WRAP_MIDTEX; if (level.flags2 & LEVEL2_CHECKSWITCHRANGE) ld->flags |= ML_CHECKSWITCHRANGE; } - - // [ZZ] check initial portal link - for (int i = 0; i < numlines; i++) - P_CheckPortal(&lines[i]); - delete[] mldf; } diff --git a/src/p_udmf.cpp b/src/p_udmf.cpp index 5b6c0b60f..366a56dcf 100644 --- a/src/p_udmf.cpp +++ b/src/p_udmf.cpp @@ -1792,11 +1792,6 @@ public: P_AdjustLine(&lines[line]); P_FinishLoadingLineDef(&lines[line], tempalpha[0]); } - - // [ZZ] check initial portal link - for (int i = 0; i < numlines; i++) - P_CheckPortal(&lines[i]); - assert(side <= numsides); if (side < numsides) {