Skip to content

Commit

Permalink
Don't bother drawing blood splats that are too far away
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Jul 22, 2024
1 parent 24544bd commit f61d529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/r_things.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ static void R_ProjectBloodSplat(const bloodsplat_t *splat)
const fixed_t tz = FixedMul(tr_x, viewcos) + FixedMul(tr_y, viewsin);

// splat is behind view plane or too far away?
if (tz < MINZ || tz > MAXZ)
if (tz < MINZ || tz > MAXZ / 8)
return;

// too far off the side?
Expand Down

0 comments on commit f61d529

Please sign in to comment.