From 61ee575cd330aaf87b19eee8e4a9afbcdb5ee6b0 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 28 Feb 2024 04:11:39 +0100 Subject: [PATCH] forgor this --- src/hardware/hw_main.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index d9bac331e..5def7073d 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -3609,9 +3609,10 @@ void HWR_Subsector(size_t num) continue; // rendering heights for bottom and top planes + // yes there were functions for this stuff, no idea why it wasnt used but bleh bottomCullHeight = P_GetFFloorBottomZAt(rover, viewx, viewy); topCullHeight = P_GetFFloorTopZAt(rover, viewx, viewy); - + if (gr_frontsector->cullheight) { if (HWR_DoCulling(gr_frontsector->cullheight, viewsector->cullheight, gr_viewz, FIXED_TO_FLOAT(bottomCullHeight), FIXED_TO_FLOAT(topCullHeight))) @@ -3662,14 +3663,7 @@ void HWR_Subsector(size_t num) } // top plane -#ifdef ESLOPE - if (*rover->t_slope) - { - centerHeight = P_GetZAt(*rover->t_slope, gr_frontsector->soundorg.x, gr_frontsector->soundorg.y); - } - else -#endif - centerHeight = *rover->topheight; + centerHeight = P_GetFFloorTopZAt(rover, gr_frontsector->soundorg.x, gr_frontsector->soundorg.y); if (centerHeight >= locFloorHeight && centerHeight <= locCeilingHeight &&