guess: Fix keyboard access to hold function

This has been broken since 2015.  It was accidentally using
"IS_CURSOR_SELECT(button)" in place of "button == CURSOR_SELECT" and
these are not the same thing.
This commit is contained in:
Ben Harris
2022-12-05 23:16:04 +00:00
parent ea223a2350
commit 9afdd4cca4

View File

@ -892,7 +892,7 @@ static char *interpret_move(const game_state *from, game_ui *ui,
if (button == CURSOR_LEFT && ui->peg_cur > 0) if (button == CURSOR_LEFT && ui->peg_cur > 0)
ui->peg_cur--; ui->peg_cur--;
ret = UI_UPDATE; ret = UI_UPDATE;
} else if (IS_CURSOR_SELECT(button)) { } else if (button == CURSOR_SELECT) {
ui->display_cur = true; ui->display_cur = true;
if (ui->peg_cur == from->params.npegs) { if (ui->peg_cur == from->params.npegs) {
ret = encode_move(from, ui); ret = encode_move(from, ui);