From a76582cee83ea15bddc120aedd1a2cc5112694df Mon Sep 17 00:00:00 2001 From: Verkister Date: Sun, 13 Mar 2022 17:10:24 +0200 Subject: [PATCH] Fixes holodeck landmarks not clearing themselves Fixes holodeck spawn landmarks (such as carps and "atmos test") not getting cleared when the program is unloaded and thus permanently leaving the holodeck to spawn endless carps and sparks on every simulation without any way to fix ingame. --- code/modules/holodeck/HolodeckControl.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/holodeck/HolodeckControl.dm b/code/modules/holodeck/HolodeckControl.dm index 1e849d1b8d..5f3bfe63bc 100644 --- a/code/modules/holodeck/HolodeckControl.dm +++ b/code/modules/holodeck/HolodeckControl.dm @@ -314,6 +314,9 @@ for(var/obj/effect/decal/cleanable/blood/B in linkedholodeck) qdel(B) + for(var/obj/effect/landmark/L in linkedholodeck) + qdel(L) + holographic_objs = A.copy_contents_to(linkedholodeck , 1) for(var/obj/holo_obj in holographic_objs) holo_obj.alpha *= 0.8 //give holodeck objs a slight transparency