mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Slant: use new move_cursor() features
This commit is contained in:
4
slant.c
4
slant.c
@ -1739,9 +1739,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
|||||||
|
|
||||||
action = (button == CURSOR_SELECT2) ? ANTICLOCKWISE : CLOCKWISE;
|
action = (button == CURSOR_SELECT2) ? ANTICLOCKWISE : CLOCKWISE;
|
||||||
} else if (IS_CURSOR_MOVE(button)) {
|
} else if (IS_CURSOR_MOVE(button)) {
|
||||||
move_cursor(button, &ui->cur_x, &ui->cur_y, w, h, false, NULL);
|
return move_cursor(button, &ui->cur_x, &ui->cur_y, w, h, false, &ui->cur_visible);
|
||||||
ui->cur_visible = true;
|
|
||||||
return MOVE_UI_UPDATE;
|
|
||||||
} else if (button == '\\' || button == '\b' || button == '/') {
|
} else if (button == '\\' || button == '\b' || button == '/') {
|
||||||
int x = ui->cur_x, y = ui->cur_y;
|
int x = ui->cur_x, y = ui->cur_y;
|
||||||
if (button == ("\\" "\b" "/")[state->soln[y*w + x] + 1])
|
if (button == ("\\" "\b" "/")[state->soln[y*w + x] + 1])
|
||||||
|
Reference in New Issue
Block a user