From efaded5016df3afbbd99040bf7ceac5cc42df5d1 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 28 Jul 2024 16:08:46 +0200 Subject: [PATCH] reset this in P_InitThinkers --- src/p_saveg.c | 1 - src/p_setup.c | 3 --- src/p_tick.c | 3 +++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/p_saveg.c b/src/p_saveg.c index 3c1b1c2f2..78226f6f4 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -2730,7 +2730,6 @@ static void P_NetUnArchiveThinkers(void) } // we don't want the removed mobjs to come back - iquetail = iquehead = 0; P_InitThinkers(); // clear sector thinker pointers so they don't point to non-existant thinkers for all of eternity diff --git a/src/p_setup.c b/src/p_setup.c index d54cb60e7..b87d11881 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -3051,9 +3051,6 @@ boolean P_SetupLevel(boolean skipprecip, boolean reloadinggamestate) displayplayers[0] = consoleplayer; // Start with your OWN view, please! } - // clear special respawning que - iquehead = iquetail = 0; - P_MapEnd(); // Remove the loading shit from the screen diff --git a/src/p_tick.c b/src/p_tick.c index 6bf32f1c3..12f872933 100644 --- a/src/p_tick.c +++ b/src/p_tick.c @@ -195,6 +195,9 @@ void Command_CountMobjs_f(void) void P_InitThinkers(void) { thinkercap.prev = thinkercap.next = &thinkercap; + + iquehead = iquetail = 0; + waypointcap = NULL; }