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

@@ -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)