Fix FOF intersections with multitags for the OpenGL in a kind of hacky way.

This commit is contained in:
Nev3r 2020-07-29 14:53:27 +02:00
parent 3b55c9e940
commit 729c8b2ec6

View file

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