fix this..

its commented out, but maybe its useful someday.......
This commit is contained in:
Alug committed 2025-11-28 00:55:50 +01:00
1 parent 9e13a4b695
commit f6d2b363a4
1 file changed
+5 -2
+5 -2
View File
@@ -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;
}