diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-08-10 00:08:13 +0100 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-08-13 16:44:24 +0100 |
| commit | 029cc3996845899edf1cfae55fbf3bd55cbc7439 (patch) | |
| tree | c4e24c3acb922ba2edf4932eccb85dd2e5692932 | |
| parent | 6a9a0cd8f6ee83e6fbd3424c337bacfb8e90502a (diff) | |
| download | puzzles-029cc3996845899edf1cfae55fbf3bd55cbc7439.zip puzzles-029cc3996845899edf1cfae55fbf3bd55cbc7439.tar.gz puzzles-029cc3996845899edf1cfae55fbf3bd55cbc7439.tar.bz2 puzzles-029cc3996845899edf1cfae55fbf3bd55cbc7439.tar.xz | |
Mines: use new move_cursor() features
| -rw-r--r-- | mines.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -2422,12 +2422,9 @@ static char *interpret_move(const game_state *from, game_ui *ui, cx = FROMCOORD(x); cy = FROMCOORD(y); - if (IS_CURSOR_MOVE(button)) { - move_cursor(button, &ui->cur_x, &ui->cur_y, from->w, from->h, false, - NULL); - ui->cur_visible = true; - return MOVE_UI_UPDATE; - } + if (IS_CURSOR_MOVE(button)) + return move_cursor(button, &ui->cur_x, &ui->cur_y, from->w, from->h, + false, &ui->cur_visible); if (IS_CURSOR_SELECT(button)) { int v = from->grid[ui->cur_y * from->w + ui->cur_x]; |