Make hitboxes count towards the total sprite count

This has the effect of misrepresenting how many sprites are actually visible, but it's more "accurate".
This commit is contained in:
Lactozilla 2023-09-03 17:14:48 -03:00
parent b8313ceda2
commit 58bd31fdca

View file

@ -3443,7 +3443,10 @@ void R_ClipSprites(drawseg_t* dsstart, portal_t* portal)
} }
if (spr->cut & SC_BBOX) if (spr->cut & SC_BBOX)
{
numvisiblesprites++;
continue; continue;
}
INT32 x1 = (spr->cut & SC_SPLAT) ? 0 : spr->x1; INT32 x1 = (spr->cut & SC_SPLAT) ? 0 : spr->x1;
INT32 x2 = (spr->cut & SC_SPLAT) ? viewwidth : spr->x2; INT32 x2 = (spr->cut & SC_SPLAT) ? viewwidth : spr->x2;