mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Unruly: use new move_cursor() features
This commit is contained in:
8
unruly.c
8
unruly.c
@ -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
|
||||
|
Reference in New Issue
Block a user