From a5a65ec9944e58c4156cd6489de4298655e300fa Mon Sep 17 00:00:00 2001 From: Raeschen Date: Mon, 8 Apr 2024 15:58:35 +0200 Subject: [PATCH] Deal with clients or keys on qdel of /mob/observer/dead (#8191) --- code/modules/mob/dead/observer/observer.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 96f59d1784..9c70dfc649 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -554,6 +554,13 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp M.following_mobs -= src stop_following() observer_mob_list -= src + //ChompEDIT START - deal with weird behavior on qdelled ghosts + if(client) //qdelling a ghost with a client = make a new ghost i guess + ghostize() + if(key) //qdelling a ghost with a key = remove the key first to prevent logging into the GC queue + key = null + //ChompEDIT END + return ..() /mob/Moved(atom/old_loc, direction, forced = FALSE)