also do the fovtan multiplication thing with precip sprites

This commit is contained in:
Monster Iestyn 2020-05-20 19:34:18 +01:00
parent 8ad59bbb51
commit 58d62f9881

View file

@ -1884,7 +1884,7 @@ static void R_ProjectPrecipitationSprite(precipmobj_t *thing)
tx = FixedMul(tr_x, viewsin) - FixedMul(tr_y, viewcos); // sideways distance
// too far off the side?
if (abs(tx) > tz<<2)
if (abs(tx) > FixedMul(tz, fovtan)<<2)
return;
// aspect ratio stuff :