From 3a841891bac72ce959fdc07e8a136dcf527b4f24 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 12 Aug 2023 13:53:48 +0100 Subject: [PATCH] Unruly: use new move_cursor() features --- unruly.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/unruly.c b/unruly.c index eddd641..3416892 100644 --- a/unruly.c +++ b/unruly.c @@ -1627,11 +1627,9 @@ static char *interpret_move(const game_state *state, game_ui *ui, } /* Keyboard move */ - if (IS_CURSOR_MOVE(button)) { - move_cursor(button, &ui->cx, &ui->cy, w2, h2, false, NULL); - ui->cursor = true; - return MOVE_UI_UPDATE; - } + if (IS_CURSOR_MOVE(button)) + return move_cursor(button, &ui->cx, &ui->cy, w2, h2, false, + &ui->cursor); /* Place one */ if ((ui->cursor && (button == CURSOR_SELECT || button == CURSOR_SELECT2