From f6d2b363a43dd57d3fe3be9125b43c8567fe2aaf Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 28 Nov 2025 00:55:50 +0100 Subject: [PATCH] fix this.. its commented out, but maybe its useful someday....... --- src/hardware/hw_main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index 434ff5252..3c2801b1c 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -4942,8 +4942,11 @@ static void HWR_ProjectSprite(mobj_t *thing) // [kb] add +1 so sprites are shown even with the extended freelook // lug: attempt to account for freelook properly const fixed_t fixedtz = FloatToFixed(tz); - if (interp.z > viewz + FixedMul(centeryfrac, fixedtz) || // view center accounted for aspect (i hope) - FloatToFixed(gzt) < viewz + FixedMul((centeryfrac - (viewheight << FRACBITS)), fixedtz)) // view center accounted for aspect but the bottom (OwO) + if (interp.z > viewz + FixedMul(FixedDiv(centeryfrac, projectiony), fixedtz) || // view center accounted for aspect (i hope) + FloatToFixed(gzt) < viewz + FixedMul(FixedDiv(centeryfrac - (viewheight << FRACBITS), projectiony), fixedtz)) // view center accounted for aspect but the bottom (OwO) + { + return; + } { return; }