Fixes haunting not updating ghost minimap (#36501)

* Fixes haunting not updating ghost minimap

* makes this the right thing

* adds this back because it doesn't work for normal moving otherwise, the events fix the anchor thing
This commit is contained in:
SECBATON GRIFFON
2024-05-31 00:42:42 +01:00
committed by GitHub
parent dcbd21f9e8
commit 1480254bcb
3 changed files with 8 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ var/datum/subsystem/more_init/SSmore_init
log_debug(" Finished caching space parallax simulation in [stop_watch(watch)]s.", FALSE)
init_sensed_explosions_list()
if (!config.skip_minimap_generation)
if (!config.skip_holominimap_generation)
watch=start_watch()
generateHoloMinimaps()
log_debug(" Finished holominimaps in [stop_watch(watch)]s.", FALSE)

View File

@@ -128,14 +128,20 @@ var/creating_arena = FALSE
cultify()
start_poltergeist_cooldown() //FUCK OFF GHOSTS
register_event(/event/after_move, src, nameof(src::update_holomaps()))
..()
/mob/dead/observer/Destroy()
..()
unregister_event(/event/after_move, src, nameof(src::update_holomaps()))
QDEL_NULL(station_holomap)
ghostMulti = null
observers.Remove(src)
/mob/dead/observer/proc/update_holomaps()
if(station_holomap)
station_holomap.update_holomap()
/mob/dead/observer/hasFullAccess()
return isAdminGhost(src)

View File

@@ -476,9 +476,7 @@
var/mob/dead/observer/observer = mob
if(observer.locked_to) //Ghosts can move at any time to unlock themselves (in theory from following a mob)
observer.manual_stop_follow(observer.locked_to)
if (observer.station_holomap)
observer.station_holomap.update_holomap()
observer.update_holomaps()
var/movedelay = GHOST_MOVEDELAY
if(isobserver(mob))
var/mob/dead/observer/observer = mob