Don't project if rot_y is less than a single fracunit
This commit is contained in:
parent
bf8bb383ab
commit
3bace37a25
|
@ -2970,7 +2970,7 @@ static void R_DrawVisSplat(vissprite_t *spr)
|
||||||
rot_y = FixedMul(tr_x, viewcos) + FixedMul(tr_y, viewsin);
|
rot_y = FixedMul(tr_x, viewcos) + FixedMul(tr_y, viewsin);
|
||||||
rot_z = v3d->z - viewz;
|
rot_z = v3d->z - viewz;
|
||||||
|
|
||||||
if (!rot_y || rot_y < FixedDiv(4*FRACUNIT, splat.scale))
|
if (rot_y < FRACUNIT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// note: y from view above of map, is distance far away
|
// note: y from view above of map, is distance far away
|
||||||
|
|
Loading…
Reference in New Issue