From 58bd31fdca435770499cd7e9ad6b0a3a99cbd6a3 Mon Sep 17 00:00:00 2001
From: Lactozilla <jp6781615@gmail.com>
Date: Sun, 3 Sep 2023 17:14:48 -0300
Subject: [PATCH] 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".

---
 src/r_things.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/r_things.c b/src/r_things.c
index ba262a8b0..b1790933d 100644
--- a/src/r_things.c
+++ b/src/r_things.c
@@ -3443,7 +3443,10 @@ void R_ClipSprites(drawseg_t* dsstart, portal_t* portal)
 		}
 
 		if (spr->cut & SC_BBOX)
+		{
+			numvisiblesprites++;
 			continue;
+		}
 
 		INT32 x1 = (spr->cut & SC_SPLAT) ? 0 : spr->x1;
 		INT32 x2 = (spr->cut & SC_SPLAT) ? viewwidth : spr->x2;
-- 
GitLab