mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 16:19:36 +01:00
[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:
co-authored by
Cyantime
Kashargul
parent
f8d0e0fe88
commit
44c2121818
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user