From 3bace37a25b881a173e49716c11f59eeccd67693 Mon Sep 17 00:00:00 2001 From: Jaime Passos Date: Wed, 14 Oct 2020 21:26:23 -0300 Subject: [PATCH] Don't project if rot_y is less than a single fracunit --- src/r_things.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_things.c b/src/r_things.c index 6c1d8a879..5fd4e27ad 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -2970,7 +2970,7 @@ static void R_DrawVisSplat(vissprite_t *spr) rot_y = FixedMul(tr_x, viewcos) + FixedMul(tr_y, viewsin); rot_z = v3d->z - viewz; - if (!rot_y || rot_y < FixedDiv(4*FRACUNIT, splat.scale)) + if (rot_y < FRACUNIT) return; // note: y from view above of map, is distance far away