Don't project if rot_y is less than a single fracunit

This commit is contained in:
Jaime Passos 2020-10-14 21:26:23 -03:00
parent bf8bb383ab
commit 3bace37a25

View file

@ -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