aboutsummaryrefslogtreecommitdiff
path: root/lightup.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-08-09 15:48:14 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-08-09 15:48:14 +0100
commite30d11ecd169c2e963fada4cac28123b4f4f9a7e (patch)
tree03f3931d945e0a5b4c95fbd1d5369ac1bd9ebbab /lightup.c
parente6d25d75baba5f3bb92ebbbc5dbba10434f4dc4f (diff)
downloadpuzzles-e30d11ecd169c2e963fada4cac28123b4f4f9a7e.zip
puzzles-e30d11ecd169c2e963fada4cac28123b4f4f9a7e.tar.gz
puzzles-e30d11ecd169c2e963fada4cac28123b4f4f9a7e.tar.bz2
puzzles-e30d11ecd169c2e963fada4cac28123b4f4f9a7e.tar.xz
Light Up: use new move_cursor() features
Diffstat (limited to 'lightup.c')
-rw-r--r--lightup.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lightup.c b/lightup.c
index 64c41f7..31a3820 100644
--- a/lightup.c
+++ b/lightup.c
@@ -1975,10 +1975,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
}
ui->cur_visible = true;
} else if (IS_CURSOR_MOVE(button)) {
- move_cursor(button, &ui->cur_x, &ui->cur_y, state->w, state->h, false,
- NULL);
- ui->cur_visible = true;
- nullret = empty;
+ nullret = move_cursor(button, &ui->cur_x, &ui->cur_y,
+ state->w, state->h, false, &ui->cur_visible);
} else
return NULL;