Fixes blockers blocking themselves + cleanup (#59808)

This commit is contained in:
Rohesie
2021-06-25 13:37:46 -07:00
committed by GitHub
parent b8c9c7800d
commit 80fb0d3e83
9 changed files with 34 additions and 14 deletions
+4 -1
View File
@@ -127,7 +127,10 @@
/obj/structure/window/proc/on_exit(datum/source, atom/movable/leaving, direction)
SIGNAL_HANDLER
if (istype(leaving) && (leaving.pass_flags & pass_flags_self))
if(leaving == src)
return // Let's not block ourselves.
if (leaving.pass_flags & pass_flags_self)
return
if (fulltile)