mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user