mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 06:54:18 +01:00
Refactored movement observable away (#20083)
Refactored movement observable away, use only the signal. Some tweaks to the signal.
This commit is contained in:
@@ -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
|
||||
. = ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user