More hard dels tracking (#37654)

This commit is contained in:
ShiftyRail
2025-06-02 13:48:03 +01:00
committed by GitHub
parent 1c0bc3a4de
commit 04374cc2c2
9 changed files with 35 additions and 9 deletions

View File

@@ -132,11 +132,14 @@ var/creating_arena = FALSE
..()
/mob/dead/observer/Destroy()
..()
var/datum/gamemode/dynamic/dyn_mode = ticker.mode
if (istype(dyn_mode))
dyn_mode.dead_players -= src
unregister_event(/event/after_move, src, nameof(src::update_holomaps()))
QDEL_NULL(station_holomap)
ghostMulti = null
observers.Remove(src)
return ..()
/mob/dead/observer/proc/update_holomaps()
if(station_holomap)

View File

@@ -26,6 +26,11 @@
if(addicted_chems)
QDEL_NULL(addicted_chems)
var/datum/gamemode/dynamic/dyn_mode = ticker.mode
if (istype(dyn_mode))
dyn_mode.living_players -= src
. = ..()
/mob/living/examine(var/mob/user, var/size = "", var/show_name = TRUE, var/show_icon = TRUE) //Show the mob's size and whether it's been butchered

View File

@@ -53,6 +53,11 @@
attack_delayer = null
special_delayer = null
throw_delayer = null
dark_plane = null
self_vision = null
master_plane = null
QDEL_NULL(hud_used)
for(var/atom/movable/leftovers in src)
qdel(leftovers)