Move recursive listening to component (#7894)

Co-authored-by: Raeschen <rycoop29@gmail.com>
This commit is contained in:
Cadyn
2024-03-08 04:49:31 -08:00
committed by GitHub
parent f590dbea21
commit 0fdd1ffc83
22 changed files with 162 additions and 12 deletions

View File

@@ -112,6 +112,7 @@
user.client.images |= holomap_datum.station_map
watching_mob = user
watching_mob.AddComponent(/datum/component/recursive_move)
RegisterSignal(watching_mob, COMSIG_OBSERVER_MOVED, /obj/machinery/station_map/proc/checkPosition)
//GLOB.dir_set_event.register(watching_mob, src, /obj/machinery/station_map/proc/checkPosition)
RegisterSignal(watching_mob, COMSIG_OBSERVER_DESTROYED, /obj/machinery/station_map/proc/stopWatching)