From aaa5aa877cc72510de784e1b91bea446658540a6 Mon Sep 17 00:00:00 2001 From: Drathek <76988376+Drulikar@users.noreply.github.com> Date: Wed, 12 Jun 2024 03:18:15 -0700 Subject: [PATCH] Fix observer huds resetting if ghostized while disconnected (#6413) # About the pull request If you are ghostized when you have no client, your preference for huds cannot be read. So this PR makes it so when an client attaches to an observer mob, it reads the client's hud settings. # Explain why it's good for the game Fixes HUDs resetting if you are ghostized while disconnected. # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: Drathek fix: Fixed ghost huds resetting settings if you were ghostized while disconnected /:cl: --- code/modules/mob/dead/observer/observer.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 732c60a71870..0ea2b3856da1 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -314,6 +314,8 @@ if(observe_target_mob) clean_observe_target() + set_huds_from_prefs() + /mob/dead/observer/Destroy(force) GLOB.observer_list -= src QDEL_NULL(orbit_menu)