Skip to content

Commit

Permalink
Fixes ocassional observer minimap desync (#5095)
Browse files Browse the repository at this point in the history
# About the pull request

Fixes annoying bug involving jumptocoord hrefs in some deadchat
messages, making ghost's minimap desync with the map observer is in.
<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

# Explain why it's good for the game
Bugs bad. Removing bugs good.
# 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: MrDas
fix: Observer minimap should no longer occasionally show wrong / no map.
/:cl:
  • Loading branch information
Das15 committed Dec 3, 2023
1 parent c1c8de0 commit a397602
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -758,12 +758,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!tx || !ty || !tz)
return
following = null
spawn(0)
// To stop the ghost flickering.
x = tx
y = ty
z = tz
sleep(15)
forceMove(locate(tx, ty, tz))

/mob/dead/observer/verb/dead_teleport_mob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak
set category = "Ghost"
Expand Down

0 comments on commit a397602

Please sign in to comment.