From b22aa784fbe8876191e792771712dd78f99daec3 Mon Sep 17 00:00:00 2001 From: Nev3r Date: Tue, 4 Jun 2019 21:04:35 +0200 Subject: [PATCH] Set a default frontscale for visplane portals. I don't know whether this is necessary or not but I'm poking blindly trying to fix the sorting issues for now. --- src/r_portal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/r_portal.c b/src/r_portal.c index 15efc79ba..0a0f4777d 100644 --- a/src/r_portal.c +++ b/src/r_portal.c @@ -201,6 +201,7 @@ static void Portal_ClipVisplane (const visplane_t* plane, portal_t* portal) { portal->ceilingclip[i] = plane->top[i + start]; portal->floorclip[i] = plane->bottom[i + start] + 1; + portal->frontscale[i] = INT32_MAX; } }