[MIRROR] fixes hard del with objects created from holodeck spawners (#6865)

* fixes hard del with objects created from holodeck spawners (#60140)

turns out mobs spawned from holodeck spawners dont get registered for qdeletion, now they do. hard dels btfo

hard dels are poo poo and holodeck issues are definitely 100x worse

* fixes hard del with objects created from holodeck spawners

Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
This commit is contained in:
SkyratBot
2021-07-12 21:47:40 +01:00
committed by GitHub
co-authored by Kylerace
parent 0b6e97c920
commit db07bac29a
+5 -1
View File
@@ -253,8 +253,12 @@ and clear when youre done! if you dont i will use :newspaper2: on you
effects += holo_effect
spawned -= holo_effect
var/atom/holo_effect_product = holo_effect.activate(src)//change name
if(istype(holo_effect_product) || islist(holo_effect_product))
if(istype(holo_effect_product))
spawned += holo_effect_product // we want mobs or objects spawned via holoeffects to be tracked as objects
RegisterSignal(holo_effect_product, COMSIG_PARENT_PREQDELETED, .proc/remove_from_holo_lists)
if(islist(holo_effect_product))
for(var/atom/atom_product as anything in holo_effect_product)
RegisterSignal(atom_product, COMSIG_PARENT_PREQDELETED, .proc/remove_from_holo_lists)
continue
if(isobj(holo_atom))