mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
The Light Up solver limits its recursion depth, so if it fails to find
a solution then it should not deduce that no solution exists. Change wording of the error message returned from the Solve user action. [originally from svn r9387]
This commit is contained in:
@ -1677,7 +1677,7 @@ static char *solve_game(game_state *state, game_state *currstate,
|
|||||||
/* That didn't work; try solving from the clean puzzle. */
|
/* That didn't work; try solving from the clean puzzle. */
|
||||||
solved = dup_game(state);
|
solved = dup_game(state);
|
||||||
if (dosolve(solved, sflags, NULL) > 0) goto solved;
|
if (dosolve(solved, sflags, NULL) > 0) goto solved;
|
||||||
*error = "Puzzle is not self-consistent.";
|
*error = "Unable to find a solution to this puzzle.";
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
solved:
|
solved:
|
||||||
|
Reference in New Issue
Block a user