X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/118473f595a49e20a818ed7253d58fdfacaa7a86..1af60e1e75977b7e1de901e2ca24b36fafcff1da:/guess.c diff --git a/guess.c b/guess.c index fc82389..0984d24 100644 --- a/guess.c +++ b/guess.c @@ -768,7 +768,8 @@ static game_state *execute_move(game_state *from, char *move) for (i = 0; i < from->solution->npegs; i++) { int val = atoi(p); - if (val <= 0 || val > from->params.ncolours) { + int min_colour = from->params.allow_blank? 0 : 1; + if (val < min_colour || val > from->params.ncolours) { free_game(ret); return NULL; } @@ -1262,7 +1263,7 @@ static int game_wants_statusbar(void) return FALSE; } -static int game_timing_state(game_state *state) +static int game_timing_state(game_state *state, game_ui *ui) { return TRUE; }