Skip to content

Commit 691e0d5

Browse files
Add our_view to screen_loc_to_offset in view_audit_buttons (#1050)
Co-authored-by: ShadowLarkens <[email protected]>
1 parent 55f1f14 commit 691e0d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/_onclick/hud/hud.dm

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ GLOBAL_LIST_INIT(available_ui_styles, list(
482482
listed_actions.check_against_view()
483483
palette_actions.check_against_view()
484484
for(var/atom/movable/screen/movable/action_button/floating_button as anything in floating_actions)
485-
var/list/current_offsets = screen_loc_to_offset(floating_button.screen_loc)
485+
var/list/current_offsets = screen_loc_to_offset(floating_button.screen_loc, our_view)
486486
// We set the view arg here, so the output will be properly hemm'd in by our new view
487487
floating_button.screen_loc = offset_to_screen_loc(current_offsets[1], current_offsets[2], view = our_view)
488488

0 commit comments

Comments
 (0)