This commit is contained in:
kevinz000
2020-04-13 05:31:54 -07:00
parent 776ece46e1
commit 6313886e0c
5 changed files with 4 additions and 24 deletions

View File

@@ -125,7 +125,7 @@
watching_mob = user
GLOB.moved_event.register(watching_mob, src, /obj/machinery/station_map/proc/checkPosition)
GLOB.dir_set_event.register(watching_mob, src, /obj/machinery/station_map/proc/checkPosition)
GLOB.destroyed_event.register(watching_mob, src, /obj/machinery/station_map/proc/stopWatching)
RegisterSignal(watching_mob, COMSIG_PARENT_QDELETING, .proc/stopWatching)
update_use_power(2)
if(bogus)
@@ -154,7 +154,7 @@
M.client.images -= holomap_datum.station_map
GLOB.moved_event.unregister(watching_mob, src)
GLOB.dir_set_event.unregister(watching_mob, src)
GLOB.destroyed_event.unregister(watching_mob, src)
UnregisterSignal(watching_mob, COMSIG_PARENT_QDELETING)
watching_mob = null
update_use_power(1)