Singles: use new move_cursor() features

This commit is contained in:
Ben Harris
2023-08-11 00:59:30 +01:00
parent a0c7156fc8
commit f13fbf2285

View File

@ -1504,11 +1504,10 @@ static char *interpret_move(const game_state *state, game_ui *ui,
int i, x = FROMCOORD(mx), y = FROMCOORD(my); int i, x = FROMCOORD(mx), y = FROMCOORD(my);
enum { NONE, TOGGLE_BLACK, TOGGLE_CIRCLE, UI } action = NONE; enum { NONE, TOGGLE_BLACK, TOGGLE_CIRCLE, UI } action = NONE;
if (IS_CURSOR_MOVE(button)) { if (IS_CURSOR_MOVE(button))
move_cursor(button, &ui->cx, &ui->cy, state->w, state->h, true, NULL); return move_cursor(button, &ui->cx, &ui->cy, state->w, state->h, true,
ui->cshow = true; &ui->cshow);
action = UI; else if (IS_CURSOR_SELECT(button)) {
} else if (IS_CURSOR_SELECT(button)) {
x = ui->cx; y = ui->cy; x = ui->cx; y = ui->cy;
if (!ui->cshow) { if (!ui->cshow) {
action = UI; action = UI;