Skip to content

Commit

Permalink
Fix observer huds resetting if ghostized while disconnected (#6413)
Browse files Browse the repository at this point in the history
# 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
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl: Drathek
fix: Fixed ghost huds resetting settings if you were ghostized while
disconnected
/:cl:
  • Loading branch information
Drulikar committed Jun 12, 2024
1 parent 39389bb commit aaa5aa8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aaa5aa8

Please sign in to comment.