mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Palisade: use new move_cursor() features
This commit is contained in:
@ -963,10 +963,10 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (IS_CURSOR_MOVE(button)) {
|
if (IS_CURSOR_MOVE(button)) {
|
||||||
ui->show = true;
|
|
||||||
if (control || shift) {
|
if (control || shift) {
|
||||||
borderflag flag = 0, newflag;
|
borderflag flag = 0, newflag;
|
||||||
int dir, i = ui->y * w + ui->x;
|
int dir, i = ui->y * w + ui->x;
|
||||||
|
ui->show = true;
|
||||||
x = ui->x;
|
x = ui->x;
|
||||||
y = ui->y;
|
y = ui->y;
|
||||||
move_cursor(button, &x, &y, w, h, false, NULL);
|
move_cursor(button, &x, &y, w, h, false, NULL);
|
||||||
@ -988,10 +988,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
|||||||
if (shift) newflag |= DISABLED(BORDER(FLIP(dir)));
|
if (shift) newflag |= DISABLED(BORDER(FLIP(dir)));
|
||||||
return string(80, "F%d,%d,%dF%d,%d,%d",
|
return string(80, "F%d,%d,%dF%d,%d,%d",
|
||||||
ui->x, ui->y, flag, x, y, newflag);
|
ui->x, ui->y, flag, x, y, newflag);
|
||||||
} else {
|
} else
|
||||||
move_cursor(button, &ui->x, &ui->y, w, h, false, NULL);
|
return move_cursor(button, &ui->x, &ui->y, w, h, false, &ui->show);
|
||||||
return MOVE_UI_UPDATE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user