From 32a35eb2e751adfae516d0c661713ce46f47e075 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 1 Jan 2025 17:19:12 +0100 Subject: [PATCH] =?UTF-8?q?try=20a=20continue=20in=20P=5FNetArchiveThinker?= =?UTF-8?q?s=20l=C3=B6=C3=B6p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nothing huuuuge, but on some maps with alot of thinkers this saves a tiny bit of time when creating a save --- 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 dcf8f0de9..ecef911e6 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) {