diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-08-12 13:53:48 +0100 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-08-13 16:44:24 +0100 |
| commit | 3a841891bac72ce959fdc07e8a136dcf527b4f24 (patch) | |
| tree | f782aa4d2f5671d7b1ba00a8503399f61ed09b62 | |
| parent | 4bd8822725794989a400768cb69f600e0a5d9734 (diff) | |
| download | puzzles-3a841891bac72ce959fdc07e8a136dcf527b4f24.zip puzzles-3a841891bac72ce959fdc07e8a136dcf527b4f24.tar.gz puzzles-3a841891bac72ce959fdc07e8a136dcf527b4f24.tar.bz2 puzzles-3a841891bac72ce959fdc07e8a136dcf527b4f24.tar.xz | |
Unruly: use new move_cursor() features
| -rw-r--r-- | unruly.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 |