From 74ee853b49a39bd8203574297ef445b332e3e247 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 16 Mar 2025 13:27:13 +0100 Subject: [PATCH] just skip this loop if P_RemoveThinkerDelayed we cant do anything there anyways, so this might be ever so slightly faster --- src/p_saveg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/p_saveg.c b/src/p_saveg.c index d7e592431..394db050f 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -1680,8 +1680,10 @@ static void P_NetArchiveThinkers(savebuffer_t *save) // save off the current thinkers for (th = thinkercap.next; th != &thinkercap; th = th->next) { - if (th->function.acp1 != (actionf_p1)P_RemoveThinkerDelayed) - numsaved++; + if (th->function.acp1 == (actionf_p1)P_RemoveThinkerDelayed) + continue; + + numsaved++; if (th->function.acp1 == (actionf_p1)P_MobjThinker) {