mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-22 05:17:38 +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:
@@ -43,8 +43,6 @@
|
||||
T.pixel_x = 0
|
||||
T.pixel_y = 0
|
||||
T.layer = ABOVE_OBJ_LAYER
|
||||
GLOB.moved_event.register(T, src, TYPE_PROC_REF(/atom/movable, move_to_turf))
|
||||
GLOB.moved_event.register(src, T, TYPE_PROC_REF(/atom/movable, move_to_turf))
|
||||
T.stake = src
|
||||
pinned_target = T
|
||||
else
|
||||
@@ -52,8 +50,6 @@
|
||||
if(pinned_target)
|
||||
pinned_target.density = FALSE
|
||||
pinned_target.layer = OBJ_LAYER
|
||||
GLOB.moved_event.unregister(pinned_target, src)
|
||||
GLOB.moved_event.unregister(src, pinned_target)
|
||||
pinned_target.stake = null
|
||||
pinned_target = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user