From c921ab463ca10fbbe7de72cea180ab6aaca06b09 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 23 Sep 2024 01:02:04 +0200 Subject: [PATCH] dont count precip towards thinkers in perfstats --- src/m_perfstats.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/m_perfstats.c b/src/m_perfstats.c index a8f9550f4..52944faf2 100644 --- a/src/m_perfstats.c +++ b/src/m_perfstats.c @@ -573,7 +573,9 @@ static void PS_CountThinkers(void) ps_removecount.value.i = 0; for (thinker = thinkercap.next; thinker != &thinkercap; thinker = thinker->next) { - ps_thinkercount.value.i++; + if (thinker->function.acp1 != (actionf_p1)P_NullPrecipThinker) + ps_thinkercount.value.i++; + if (thinker->function.acp1 == (actionf_p1)P_RemoveThinkerDelayed) ps_removecount.value.i++; else if (thinker->function.acp1 == (actionf_p1)P_MobjThinker)