mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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:
4
flood.c
4
flood.c
@ -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;
|
||||
|
Reference in New Issue
Block a user