Okay, now vertex slopes aren't placement-order-dependent any more. Hopefully this is the best way to handle things.

This commit is contained in:
toasterbabe 2016-05-31 17:43:27 +01:00
parent d998ddfae4
commit d4d44777f4
1 changed files with 8 additions and 0 deletions

View File

@ -546,9 +546,17 @@ static pslope_t *P_NewVertexSlope(INT16 tag1, INT16 tag2, INT16 tag3, UINT8 flag
continue;
if (!ret->vertices[0] && mt->angle == tag1)
{
ret->vertices[0] = mt;
mt = mapthings;
i = 0;
}
else if (!ret->vertices[1] && mt->angle == tag2)
{
ret->vertices[1] = mt;
mt = mapthings;
i = 0;
}
else if (!ret->vertices[2] && mt->angle == tag3)
ret->vertices[2] = mt;
}