X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=undead.c;h=b1f536e8d0233183a3d0ecf553999038670bf120;hb=db313b3948d27244dd7c34c2609c66d6204d8931;hp=fc03fe8f1701d182fec0477b554cf17f23861b7e;hpb=5e1c335eea905ee031e440399f7a575c5c7a1ad3;p=sgt-puzzles.git diff --git a/undead.c b/undead.c index fc03fe8..b1f536e 100644 --- a/undead.c +++ b/undead.c @@ -1955,7 +1955,9 @@ int check_path_solution(game_state *state, int p) { } } - if (unfilled == 0 && count != state->common->paths[p].sightings_start) { + if (count > state->common->paths[p].sightings_start || + count + unfilled < state->common->paths[p].sightings_start) + { correct = FALSE; state->hint_errors[state->common->paths[p].grid_start] = TRUE; } @@ -1977,7 +1979,9 @@ int check_path_solution(game_state *state, int p) { } } - if (unfilled == 0 && count != state->common->paths[p].sightings_end) { + if (count > state->common->paths[p].sightings_end || + count + unfilled < state->common->paths[p].sightings_end) + { correct = FALSE; state->hint_errors[state->common->paths[p].grid_end] = TRUE; } @@ -2698,7 +2702,7 @@ static void game_print(drawing *dr, const game_state *state, int tilesize) const struct game thegame = { "Undead", "games.undead", "undead", default_params, - game_fetch_preset, + game_fetch_preset, NULL, decode_params, encode_params, free_params,