From 0821f4107df8c1c5050a4f7c6f2759a012dc9377 Mon Sep 17 00:00:00 2001 From: Morrow Date: Sun, 6 Aug 2023 04:46:14 -0400 Subject: [PATCH] bam, fixed signal failure --- code/game/machinery/telecomms/presets.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/telecomms/presets.dm b/code/game/machinery/telecomms/presets.dm index 46a507eacb27..faa8510cbb7b 100644 --- a/code/game/machinery/telecomms/presets.dm +++ b/code/game/machinery/telecomms/presets.dm @@ -221,7 +221,8 @@ GLOBAL_LIST_EMPTY(all_static_telecomms_towers) /obj/structure/machinery/telecomms/relay/preset/tower/mapcomms/Initialize() . = ..() - RegisterSignal(get_turf(src), COMSIG_WEEDNODE_GROWTH, PROC_REF(handle_xeno_acquisition)) + RegisterSignal(src, COMSIG_ATOM_TURF_CHANGE, PROC_REF(register_with_turf)) + register_with_turf() /obj/structure/machinery/telecomms/relay/preset/tower/mapcomms/attack_hand(mob/user) if(user.action_busy) @@ -368,6 +369,11 @@ GLOBAL_LIST_EMPTY(all_static_telecomms_towers) overlays += corruption_image +/obj/structure/machinery/telecomms/relay/preset/tower/mapcomms/proc/register_with_turf() + SIGNAL_HANDLER + + RegisterSignal(get_turf(src), COMSIG_WEEDNODE_GROWTH, PROC_REF(handle_xeno_acquisition)) + /obj/structure/machinery/telecomms/relay/preset/telecomms id = "Telecomms Relay" autolinkers = list("relay")