mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Cleanup patch from James H: disable the `s' key, which was only in
there by accident. [originally from svn r7351]
This commit is contained in:
@ -2197,15 +2197,11 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
|
|||||||
int px, py;
|
int px, py;
|
||||||
struct space *sp, *dot;
|
struct space *sp, *dot;
|
||||||
|
|
||||||
if (button == 'H' || button == 'h' ||
|
if (button == 'H' || button == 'h') {
|
||||||
button == 'S' || button == 's') {
|
|
||||||
char *ret;
|
char *ret;
|
||||||
game_state *tmp = dup_game(state);
|
game_state *tmp = dup_game(state);
|
||||||
if (button == 'H' || button == 'h')
|
|
||||||
solver_obvious(tmp);
|
solver_obvious(tmp);
|
||||||
else
|
ret = diff_game(state, tmp, 0);
|
||||||
solver_state(tmp, DIFF_UNREASONABLE-1);
|
|
||||||
ret = diff_game(state, tmp, 1);
|
|
||||||
free_game(tmp);
|
free_game(tmp);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user