From 9052ca98272e2f54668686264ac4f8a1a0f43fce Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 22 May 2023 06:51:37 +0100 Subject: [PATCH] [MIRROR] Mark client as QDELING [MDB IGNORE] (#21331) * Mark client as QDELING (#75576) Clients will now be marked QDELING while in the process of deleting. Necessary for #75445 * Mark client as QDELING --------- Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com> --- code/modules/client/client_procs.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 809b9361dd6..ae0f79c86f9 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -538,6 +538,10 @@ GLOBAL_LIST_INIT(blacklisted_builds, list( /client/Del() if(!gc_destroyed) + gc_destroyed = world.time + if (!QDELING(src)) + stack_trace("Client does not purport to be QDELING, this is going to cause bugs in other places!") + // Yes this is the same as what's found in qdel(). Yes it does need to be here // Get off my back SEND_SIGNAL(src, COMSIG_PARENT_QDELETING, TRUE)