- fixed UDMF initialization for linedef portal info.

This commit is contained in:
Christoph Oelckers 2017-01-08 16:09:21 +01:00
parent 1c74faea73
commit a54d2d8a55

View file

@ -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++)