forgor this
This commit is contained in:
1 parent
bdd963081e
commit
61ee575cd3
1 file changed
+3
-9
@@ -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 &&
|
||||
|
||||
Reference in new issue
Block a user