1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Make CursorState store a ScreenCoordsXY object

This commit is contained in:
Tulio Leao
2019-12-14 23:30:55 -03:00
parent 9d09f1b95c
commit 2cd3add373
9 changed files with 32 additions and 41 deletions

View File

@@ -698,7 +698,7 @@ static void window_editor_object_selection_scroll_mousedown(rct_window* w, int32
w->Invalidate();
const CursorState* state = context_get_cursor_state();
audio_play_sound(SoundId::Click1, 0, state->x);
audio_play_sound(SoundId::Click1, 0, state->position.x);
if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)
{