Skip to content

Commit

Permalink
Hotfixes Megaphone X Offset (#4741)
Browse files Browse the repository at this point in the history
# About the pull request

<!-- 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.
-->

Insufficient testing made me once more commit this mistake, because the
langchat image is not regenerated the text keeps offsetting every time,
drifting away and offscreen.

This hotfixes it.

closes #4742 


# Changelog
:cl:
fix: Re-fixed Megaphone above-head-chat drifting to the left.
/:cl:
  • Loading branch information
fira authored Oct 21, 2023
1 parent 1dc52fd commit 7928c2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/datums/langchat/langchat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@

langchat_image.maptext = text_to_display
langchat_image.maptext_width = LANGCHAT_WIDTH
langchat_image.maptext_x = - world.icon_size - get_pixel_position_x(src, TRUE)

langchat_listeners = listeners
for(var/mob/M in langchat_listeners)
Expand Down Expand Up @@ -148,7 +149,7 @@

langchat_image.maptext = text_to_display
langchat_image.maptext_width = LANGCHAT_WIDTH * 2
langchat_image.maptext_x -= LANGCHAT_WIDTH / 2
langchat_image.maptext_x = - world.icon_size - get_pixel_position_x(src, TRUE) - LANGCHAT_WIDTH / 2

langchat_listeners = listeners
for(var/mob/M in langchat_listeners)
Expand Down

0 comments on commit 7928c2e

Please sign in to comment.