From 64e2e7c12f5e9c40000c113f39c602a6bcedd43c Mon Sep 17 00:00:00 2001 From: Nev3r Date: Sun, 12 Apr 2020 13:16:33 +0200 Subject: [PATCH] Use Tags_Compare wrapper in the OpenGL renderer, as well. --- src/hardware/hw_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 235505341..05b7c997f 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -1862,7 +1862,7 @@ static void HWR_StoreWallRange(double startfrac, double endfrac) //Hurdler: 3d-floors test #ifdef R_FAKEFLOORS - if (gr_frontsector && gr_backsector && gr_frontsector->tag != gr_backsector->tag && (gr_backsector->ffloors || gr_frontsector->ffloors)) + if (gr_frontsector && gr_backsector && !Tags_Compare(&gr_frontsector->tags, &gr_backsector->tags) && (gr_backsector->ffloors || gr_frontsector->ffloors)) { ffloor_t * rover; fixed_t highcut = 0, lowcut = 0; @@ -2662,7 +2662,7 @@ static void HWR_AddLine(seg_t * line) #endif !line->sidedef->midtexture && ((!gr_frontsector->ffloors && !gr_backsector->ffloors) - || (gr_frontsector->tag == gr_backsector->tag))) + || Tags_Compare(&gr_frontsector->tags, &gr_backsector->tags))) return; // line is empty, don't even bother // treat like wide open window instead HWR_ProcessSeg(); // Doesn't need arguments because they're defined globally :D @@ -2704,7 +2704,7 @@ static void HWR_AddLine(seg_t * line) #endif !line->sidedef->midtexture && ((!gr_frontsector->ffloors && !gr_backsector->ffloors) - || (gr_frontsector->tag == gr_backsector->tag))) + || Tags_Compare(&gr_frontsector->tags, &gr_backsector->tags))) return; // line is empty, don't even bother goto clippass; // treat like wide open window instead