From ec438e19fbf8ff1466686b9b18c4ea76a0fb909d Mon Sep 17 00:00:00 2001 From: Mothblocks <35135081+Mothblocks@users.noreply.github.com> Date: Sun, 21 May 2023 20:19:28 -0700 Subject: [PATCH] Mark client as QDELING (#75576) Clients will now be marked QDELING while in the process of deleting. Necessary for #75445 --- 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 d4a67b021a8..199bc7016dd 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -529,6 +529,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)