Fix Body Container bug (#69824)

* Fix Body Container bug

Fixed bug where body containers could not be closed when standing diagonally from them in some cases.

* Update morgue.dm

* Containers get PASSSTRUCTURE, trays get PASSTABLE

* Update code/game/objects/structures/morgue.dm

* Update code/game/objects/structures/morgue.dm

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
Marina
2022-09-14 14:03:57 -04:00
committed by GitHub
co-authored by LemonInTheDark
parent d1ec0b6075
commit af87c9cf6a
+3 -3
View File
@@ -21,7 +21,7 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an
density = TRUE
anchored = TRUE
max_integrity = 400
pass_flags_self = LETPASSTHROW | PASSSTRUCTURE
var/obj/structure/tray/connected = null
var/locked = FALSE
dir = SOUTH
@@ -322,7 +322,7 @@ GLOBAL_LIST_EMPTY(crematoriums)
density = TRUE
var/obj/structure/bodycontainer/connected = null
anchored = TRUE
pass_flags_self = LETPASSTHROW
pass_flags_self = PASSTABLE | LETPASSTHROW
max_integrity = 350
/obj/structure/tray/Destroy()
@@ -399,7 +399,7 @@ GLOBAL_LIST_EMPTY(crematoriums)
name = "morgue tray"
desc = "Apply corpse before closing."
icon_state = "morguet"
pass_flags_self = PASSTABLE
pass_flags_self = PASSTABLE | LETPASSTHROW
/obj/structure/tray/m_tray/CanAllowThrough(atom/movable/mover, border_dir)
. = ..()