Unruly: use new move_cursor() features

This commit is contained in:
Ben Harris
2023-08-12 13:53:48 +01:00
parent 4bd8822725
commit 3a841891ba

View File

@ -1627,11 +1627,9 @@ static char *interpret_move(const game_state *state, game_ui *ui,
} }
/* Keyboard move */ /* Keyboard move */
if (IS_CURSOR_MOVE(button)) { if (IS_CURSOR_MOVE(button))
move_cursor(button, &ui->cx, &ui->cy, w2, h2, false, NULL); return move_cursor(button, &ui->cx, &ui->cy, w2, h2, false,
ui->cursor = true; &ui->cursor);
return MOVE_UI_UPDATE;
}
/* Place one */ /* Place one */
if ((ui->cursor && (button == CURSOR_SELECT || button == CURSOR_SELECT2 if ((ui->cursor && (button == CURSOR_SELECT || button == CURSOR_SELECT2