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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user