Refactored movement observable away (#20083)

Refactored movement observable away, use only the signal.
Some tweaks to the signal.
This commit is contained in:
Fluffy
2024-10-26 15:53:07 +00:00
committed by GitHub
parent 3de4911dc8
commit d40d459d42
35 changed files with 532 additions and 434 deletions
+2 -2
View File
@@ -799,7 +799,7 @@
forceMove(T)
tile_shifted = TRUE
follow()
GLOB.moved_event.register(owner, src, PROC_REF(follow))
RegisterSignal(owner, COMSIG_MOVABLE_MOVED, PROC_REF(follow))
/atom/movable/z_observer/proc/follow()
@@ -826,7 +826,7 @@
qdel(src)
/atom/movable/z_observer/Destroy()
GLOB.moved_event.unregister(owner, src, PROC_REF(follow))
UnregisterSignal(owner, COMSIG_MOVABLE_MOVED)
owner = null
. = ..()