[MIRROR] Crematoriums shouldn't break when they fail to open. (#8610)

Co-authored-by: Cyantime <Cyantime@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-07-08 13:19:50 +02:00
committed by GitHub
co-authored by Cyantime Kashargul
parent f8d0e0fe88
commit 44c2121818
+2 -4
View File
@@ -227,8 +227,7 @@ GLOBAL_LIST_BOILERPLATE(all_crematoriums, /obj/structure/morgue/crematorium)
if (!( A.anchored ))
A.forceMove(src)
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
//src.connected = null
qdel(src.connected)
qdel_null(connected)
else if (src.locked == 0)
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
src.connected = new /obj/structure/m_tray/c_tray( src.loc )
@@ -242,8 +241,7 @@ GLOBAL_LIST_BOILERPLATE(all_crematoriums, /obj/structure/morgue/crematorium)
A.forceMove(src.connected.loc)
src.connected.icon_state = "cremat"
else
qdel(src.connected)
src.connected = null //CHOMPEdit - Fix morgues breaking for a while with something solid in front of door.
qdel_null(connected)
src.add_fingerprint(user)
update()