mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
The 515 MegaPR early downport (#7783)
Co-authored-by: Selis <selis@xynolabs.com> Co-authored-by: Selis <sirlionfur@hotmail.de> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: SatinIsle <thesatinisle@gmail.com> Co-authored-by: Heroman <alesha3000@list.ru> Co-authored-by: Casey <a.roaming.shadow@gmail.com> Co-authored-by: Raeschen <rycoop29@gmail.com>
This commit is contained in:
@@ -112,9 +112,9 @@
|
||||
user.client.images |= holomap_datum.station_map
|
||||
|
||||
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_OBSERVER_MOVED, /obj/machinery/station_map/proc/checkPosition)
|
||||
//GLOB.dir_set_event.register(watching_mob, src, /obj/machinery/station_map/proc/checkPosition)
|
||||
RegisterSignal(watching_mob, COMSIG_OBSERVER_DESTROYED, /obj/machinery/station_map/proc/stopWatching)
|
||||
update_use_power(USE_POWER_ACTIVE)
|
||||
|
||||
if(bogus)
|
||||
@@ -141,9 +141,9 @@
|
||||
var/mob/M = watching_mob
|
||||
spawn(5) //we give it time to fade out
|
||||
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_OBSERVER_MOVED)
|
||||
//GLOB.dir_set_event.unregister(watching_mob, src)
|
||||
UnregisterSignal(watching_mob, COMSIG_OBSERVER_DESTROYED)
|
||||
watching_mob = null
|
||||
update_use_power(USE_POWER_IDLE)
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
/obj/machinery/station_map/update_icon()
|
||||
if(!holomap_datum)
|
||||
return //Not yet.
|
||||
|
||||
|
||||
cut_overlays()
|
||||
if(stat & BROKEN)
|
||||
icon_state = "station_mapb"
|
||||
|
||||
Reference in New Issue
Block a user