mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 15:18:09 +01:00
[MIRROR] Signal fixes (#12141)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
2a384412a4
commit
0c29c5df9a
@@ -14,11 +14,11 @@
|
||||
|
||||
/datum/component/topturfcrossed/RegisterWithParent()
|
||||
our_owner.AddComponent(/datum/component/recursive_move) // Required if we want to be useful at all
|
||||
RegisterSignal(our_owner, COMSIG_MOVABLE_MOVED, PROC_REF(handle_location_change))
|
||||
RegisterSignal(our_owner, COMSIG_MOVABLE_ATTEMPTED_MOVE, PROC_REF(handle_location_change))
|
||||
update_turf_signals(get_turf(our_owner))
|
||||
|
||||
/datum/component/topturfcrossed/UnregisterFromParent()
|
||||
UnregisterSignal(our_owner, COMSIG_MOVABLE_MOVED)
|
||||
UnregisterSignal(our_owner, COMSIG_MOVABLE_ATTEMPTED_MOVE)
|
||||
update_turf_signals(null)
|
||||
|
||||
/datum/component/topturfcrossed/proc/handle_location_change(datum/source, atom/old_loc, atom/new_loc)
|
||||
|
||||
Reference in New Issue
Block a user