[MIRROR] (Partially) Fixes Out Of Memory crashes (#10092)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-07 16:36:42 +01:00
committed by GitHub
co-authored by Cameron Lennox Kashargul
parent 133f37de97
commit ec71611656
31 changed files with 124 additions and 67 deletions
+2 -3
View File
@@ -81,8 +81,6 @@
if(!D.has_AI())
continue
D.ai_holder.lose_target()
watchowner.emote("deathgasp")
watchowner.alpha = 15
makeacorpse(watchowner)
return
@@ -97,7 +95,8 @@
if(H.isSynthetic())
return
corpse = new /mob/living/carbon/human(H.loc)
corpse.setDNA(H.dna.Clone())
qdel_swap(corpse.dna,H.dna.Clone())
corpse.emote("deathgasp")
corpse.death(1) //Kills the new mob
var/obj/item/clothing/temp = null
if(H.get_equipped_item(slot_w_uniform))