diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 4741c6a46..acc4da5fa 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -2492,7 +2492,7 @@ static void HWR_Subsector(size_t num) if (gl_frontsector->cullheight) { - if (HWR_DoCulling(gl_frontsector->cullheight, viewsector->cullheight, gl_viewz, FIXED_TO_FLOAT(bottomCullHeight), FIXED_TO_FLOAT(topCullHeight))) + if (HWR_DoCulling(gl_frontsector->cullheight, viewsector->cullheight, gl_viewz, FIXED_TO_FLOAT(*rover->bottomheight), FIXED_TO_FLOAT(*rover->topheight))) continue; }