Flood: fix interpret_move() return value for CURSOR_SELECT2

If there's no solution in progress, it should return MOVE_NO_EFFECT,
not MOVE_UNUSED.
This commit is contained in:
Ben Harris
2023-08-14 01:55:42 +01:00
parent 462a5450c6
commit 899c7c41ef

View File

@ -845,8 +845,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
} else if (button == CURSOR_SELECT) {
tx = ui->cx;
ty = ui->cy;
} else if (button == CURSOR_SELECT2 &&
state->soln && state->solnpos < state->soln->nmoves) {
} else if (button == CURSOR_SELECT2) {
if (state->soln && state->solnpos < state->soln->nmoves)
move = state->soln->moves[state->solnpos];
} else {
return MOVE_UNUSED;