From aba138447c03a8536a7485b8b8f3d5e13f76d4c3 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 20 Mar 2025 17:31:57 +0100 Subject: [PATCH] =?UTF-8?q?continue=20in=20P=5FNetArchiveThinkers=20l?= =?UTF-8?q?=C3=B6=C3=B6p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if thinker is P_RemoveThinkerDelayed --- src/p_saveg.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/p_saveg.c b/src/p_saveg.c index 3525f58e3..ea3ed47b6 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) { @@ -1864,7 +1866,7 @@ static void P_NetArchiveThinkers(savebuffer_t *save) continue; } #ifdef PARANOIA - else if (th->function.acp1 != P_RemoveThinkerDelayed) // wait garbage collection + else // wait garbage collection I_Error("unknown thinker type %p", th->function.acp1); #endif } @@ -3459,7 +3461,7 @@ void P_SaveNetGame(savebuffer_t *save, boolean resending) { thinker_t *th; mobj_t *mobj; - INT32 i = 1; // don't start from 0, it'd be confused with a blank pointer otherwise + UINT32 i = 1; // don't start from 0, it'd be confused with a blank pointer otherwise CV_SaveNetVars(&save->p, false); P_NetArchiveMisc(save, resending);