From 48cb2e45b2e3a840c13a8f27640e5ffabaa94a8c Mon Sep 17 00:00:00 2001 From: Sun-Soaked <45698967+Sun-Soaked@users.noreply.github.com> Date: Fri, 25 Oct 2024 22:54:20 -0400 Subject: [PATCH] more harddels please! (#3640) ## About The Pull Request Cleans up 3 potentially harddel causing references, specifically -particle_holders deployed when a mob is bleeding or obj is burning -snake in my boot ## Why It's Good For The Game WAITER WAITER ## Changelog :cl: fix: cleans up 3 potentially sticky refs /:cl: --------- Signed-off-by: Sun-Soaked <45698967+Sun-Soaked@users.noreply.github.com> Co-authored-by: Mark Suckerberg --- code/game/objects/objs.dm | 4 +++- code/modules/clothing/shoes/miscellaneous.dm | 3 +++ code/modules/mob/living/carbon/human/human.dm | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm index 0ffeaa673b53a..0391de85eb337 100644 --- a/code/game/objects/objs.dm +++ b/code/game/objects/objs.dm @@ -84,7 +84,9 @@ if(!ismachinery(src)) STOP_PROCESSING(SSobj, src) // TODO: Have a processing bitflag to reduce on unnecessary loops through the processing lists SStgui.close_uis(src) - . = ..() + if(burning_particles) + QDEL_NULL(burning_particles) + return ..() /obj/throw_at(atom/target, range, speed, mob/thrower, spin=1, diagonals_first = 0, datum/callback/callback, force, gentle = FALSE, quickstart = TRUE) diff --git a/code/modules/clothing/shoes/miscellaneous.dm b/code/modules/clothing/shoes/miscellaneous.dm index 234917e03d6d2..839dd3565adad 100644 --- a/code/modules/clothing/shoes/miscellaneous.dm +++ b/code/modules/clothing/shoes/miscellaneous.dm @@ -217,6 +217,9 @@ var/mob/living/simple_animal/hostile/retaliate/poison/snake/bootsnake = new/mob/living/simple_animal/hostile/retaliate/poison/snake(src) occupants += bootsnake +/obj/item/clothing/shoes/cowboy/Destroy() + QDEL_LIST(occupants) + return ..() /obj/item/clothing/shoes/cowboy/equipped(mob/living/carbon/user, slot) . = ..() diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 27fa569de7cd3..4709e921145f9 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -42,6 +42,8 @@ QDEL_NULL(physiology) QDEL_LIST(bioware) GLOB.human_list -= src + if(blood_particle) + QDEL_NULL(blood_particle) return ..()