mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-10 12:11:19 +00:00
dir change
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
user.client.images |= holomap_datum.station_map
|
||||
|
||||
watching_mob = user
|
||||
GLOB.dir_set_event.register(watching_mob, src, /obj/machinery/station_map/proc/checkPosition)
|
||||
RegisterSignal(watching_mob, COMSIG_ATOM_DIR_CHANGE, .proc/checkPosition)
|
||||
RegisterSignal(watching_mob, COMSIG_MOVABLE_MOVED, .proc/checkPosition)
|
||||
RegisterSignal(watching_mob, COMSIG_PARENT_QDELETING, .proc/stopWatching)
|
||||
update_use_power(2)
|
||||
@@ -152,7 +152,7 @@
|
||||
var/mob/M = watching_mob
|
||||
spawn(5) //we give it time to fade out
|
||||
M.client.images -= holomap_datum.station_map
|
||||
GLOB.dir_set_event.unregister(watching_mob, src)
|
||||
UnregisterSignal(watching_mob, COMSIG_ATOM_DIR_CHANGE)
|
||||
UnregisterSignal(watching_mob, COMSIG_MOVABLE_MOVED)
|
||||
UnregisterSignal(watching_mob, COMSIG_PARENT_QDELETING)
|
||||
watching_mob = null
|
||||
|
||||
Reference in New Issue
Block a user