From 729c8b2ec6cab99ed838a301ce938d9b04801406 Mon Sep 17 00:00:00 2001 From: Nev3r Date: Wed, 29 Jul 2020 14:53:27 +0200 Subject: [PATCH] Fix FOF intersections with multitags for the OpenGL in a kind of hacky way. --- src/hardware/hw_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 98b736b30..219bc905e 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -1627,6 +1627,9 @@ static void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom continue; if (*rover->topheight < lowcut || *rover->bottomheight > highcut) continue; + if (Tag_Find(&gl_frontsector->tags, rover->master->args[0])) // Skip FOF if on both sectors by checking arg0. Hacky but it works. + continue; + texnum = R_GetTextureNum(sides[rover->master->sidenum[0]].midtexture); @@ -1761,6 +1764,8 @@ static void HWR_ProcessSeg(void) // Sort of like GLWall::Process in GZDoom continue; if (*rover->topheight < lowcut || *rover->bottomheight > highcut) continue; + if (Tag_Find(&gl_backsector->tags, rover->master->args[0])) // Skip FOF if on both sectors by checking arg0. Hacky but it works. + continue; texnum = R_GetTextureNum(sides[rover->master->sidenum[0]].midtexture);