Allows the connect_loc element to have a listener different from the tracked object (#58276)

This commit is contained in:
Emmett Gaines
2021-04-10 18:19:57 -07:00
committed by GitHub
parent f7aebaa133
commit 1c81adac8d
30 changed files with 84 additions and 63 deletions
+1 -1
View File
@@ -84,7 +84,7 @@
COMSIG_ATOM_EXIT = .proc/on_exit,
)
AddElement(/datum/element/connect_loc, loc_connections)
AddElement(/datum/element/connect_loc, src, loc_connections)
/obj/structure/railing/proc/on_exit(datum/source, atom/movable/leaving, atom/new_location)
SIGNAL_HANDLER
+1 -1
View File
@@ -38,7 +38,7 @@
COMSIG_ATOM_EXIT = .proc/on_exit,
)
AddElement(/datum/element/connect_loc, loc_connections)
AddElement(/datum/element/connect_loc, src, loc_connections)
return ..()
@@ -39,7 +39,7 @@
COMSIG_ATOM_EXIT = .proc/on_exit,
)
AddElement(/datum/element/connect_loc, loc_connections)
AddElement(/datum/element/connect_loc, src, loc_connections)
/obj/structure/windoor_assembly/Destroy()
density = FALSE
+1 -1
View File
@@ -73,7 +73,7 @@
)
if (flags_1 & ON_BORDER_1)
AddElement(/datum/element/connect_loc, loc_connections)
AddElement(/datum/element/connect_loc, src, loc_connections)
/obj/structure/window/ComponentInitialize()
. = ..()