From a54d2d8a5581d1567b3ae742cb266af4278901ea Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 8 Jan 2017 16:09:21 +0100 Subject: [PATCH] - fixed UDMF initialization for linedef portal info. --- src/p_udmf.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/p_udmf.cpp b/src/p_udmf.cpp index 8e88fc89d..bbe7153f9 100644 --- a/src/p_udmf.cpp +++ b/src/p_udmf.cpp @@ -792,6 +792,7 @@ public: memset(ld, 0, sizeof(*ld)); ld->alpha = 1.; ld->portalindex = UINT_MAX; + ld->portaltransferred = UINT_MAX; ld->sidedef[0] = ld->sidedef[1] = NULL; if (level.flags2 & LEVEL2_CLIPMIDTEX) ld->flags |= ML_CLIP_MIDTEX; if (level.flags2 & LEVEL2_WRAPMIDTEX) ld->flags |= ML_WRAP_MIDTEX; @@ -1824,9 +1825,6 @@ public: { short tempalpha[2] = { SHRT_MIN, SHRT_MIN }; - lines[line].portalindex = UINT_MAX; - lines[line].portaltransferred = UINT_MAX; - lines[line] = ParsedLines[line]; for(int sd = 0; sd < 2; sd++)