mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Tents: use new move_cursor() features
This commit is contained in:
10
tents.c
10
tents.c
@ -1674,11 +1674,12 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
||||
}
|
||||
|
||||
if (IS_CURSOR_MOVE(button)) {
|
||||
ui->cdisp = true;
|
||||
char *ret;
|
||||
if (shift || control) {
|
||||
int len = 0, i, indices[2];
|
||||
indices[0] = ui->cx + w * ui->cy;
|
||||
move_cursor(button, &ui->cx, &ui->cy, w, h, false, NULL);
|
||||
ret = move_cursor(button, &ui->cx, &ui->cy, w, h, false,
|
||||
&ui->cdisp);
|
||||
indices[1] = ui->cx + w * ui->cy;
|
||||
|
||||
/* NONTENTify all unique traversed eligible squares */
|
||||
@ -1693,8 +1694,9 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
||||
tmpbuf[len] = '\0';
|
||||
if (len) return dupstr(tmpbuf);
|
||||
} else
|
||||
move_cursor(button, &ui->cx, &ui->cy, w, h, false, NULL);
|
||||
return MOVE_UI_UPDATE;
|
||||
ret = move_cursor(button, &ui->cx, &ui->cy, w, h, false,
|
||||
&ui->cdisp);
|
||||
return ret;
|
||||
}
|
||||
if (ui->cdisp) {
|
||||
char rep = 0;
|
||||
|
Reference in New Issue
Block a user