Skip to content

Commit

Permalink
Add our_view to screen_loc_to_offset in view_audit_buttons (#1050)
Browse files Browse the repository at this point in the history
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com>
  • Loading branch information
francinum and ShadowLarkens committed Aug 15, 2024
1 parent 55f1f14 commit 691e0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/_onclick/hud/hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ GLOBAL_LIST_INIT(available_ui_styles, list(
listed_actions.check_against_view()
palette_actions.check_against_view()
for(var/atom/movable/screen/movable/action_button/floating_button as anything in floating_actions)
var/list/current_offsets = screen_loc_to_offset(floating_button.screen_loc)
var/list/current_offsets = screen_loc_to_offset(floating_button.screen_loc, our_view)
// We set the view arg here, so the output will be properly hemm'd in by our new view
floating_button.screen_loc = offset_to_screen_loc(current_offsets[1], current_offsets[2], view = our_view)

Expand Down

0 comments on commit 691e0d5

Please sign in to comment.