try a continue in P_NetArchiveThinkers lööp

nothing huuuuge, but on some maps with alot of thinkers this saves a tiny bit of time when creating a save
This commit is contained in:
Alug committed 2025-01-01 17:19:12 +01:00
1 parent 81c1f2d1a8
commit 32a35eb2e7
1 file changed
+4 -2
+4 -2
View File
@@ -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)
{