aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--palisade.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/palisade.c b/palisade.c
index 8776cc1..f7b3791 100644
--- a/palisade.c
+++ b/palisade.c
@@ -755,8 +755,12 @@ static char *solve_game(const game_state *state, const game_state *currstate,
init_borders(w, h, move + 1);
move[wh + 1] = '\0';
- if (solver(&state->shared->params, state->shared->clues, move + 1))
+ if (solver(&state->shared->params, state->shared->clues, move + 1)) {
+ int i;
+ for (i = 0; i < wh; i++)
+ move[i+1] |= '@'; /* turn into sensible ASCII */
return (char *) move;
+ }
*error = "Sorry, I can't solve this puzzle";
sfree(move);