diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 9580eae63..0a9cef43e 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -694,6 +694,10 @@ void HWR_RenderPlane(subsector_t *subsector, extrasubsector_t *xsub, boolean isc slope = gr_frontsector->c_slope; } + // Set fixedheight to the slope's height from our viewpoint, if we have a slope + if (slope) + fixedheight = P_GetZAt(slope, viewx, viewy); + height = FIXED_TO_FLOAT(fixedheight); // Allocate plane-vertex buffer if we need to