[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>
This commit is contained in:
SkyratBot
2023-05-22 06:51:37 +01:00
committed by GitHub
parent 6a6ad62bf4
commit 9052ca9827
+4
View File
@@ -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)