aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-08-12 13:53:48 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-08-13 16:44:24 +0100
commit3a841891bac72ce959fdc07e8a136dcf527b4f24 (patch)
treef782aa4d2f5671d7b1ba00a8503399f61ed09b62
parent4bd8822725794989a400768cb69f600e0a5d9734 (diff)
downloadpuzzles-3a841891bac72ce959fdc07e8a136dcf527b4f24.zip
puzzles-3a841891bac72ce959fdc07e8a136dcf527b4f24.tar.gz
puzzles-3a841891bac72ce959fdc07e8a136dcf527b4f24.tar.bz2
puzzles-3a841891bac72ce959fdc07e8a136dcf527b4f24.tar.xz
Unruly: use new move_cursor() features
-rw-r--r--unruly.c8
1 files 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