X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/a7be78fca974c134729825ac95a946fe49368ec9..9c90045a9117ea51cc4bf90186fe98a04e37b8a7:/rect.c diff --git a/rect.c b/rect.c index fb8f787..c77e5b7 100644 --- a/rect.c +++ b/rect.c @@ -1692,7 +1692,7 @@ static char *new_game_desc(game_params *params, random_state *rs, /* * If we've succeeded, then terminate the loop. */ - if (ret) + if (ret == 1) break; } @@ -2043,6 +2043,11 @@ static char *solve_game(game_state *state, game_state *currstate, return ret; } +static int game_can_format_as_text_now(game_params *params) +{ + return TRUE; +} + static char *game_text_format(game_state *state) { char *ret, *p, buf[80]; @@ -2878,7 +2883,7 @@ const struct game thegame = { dup_game, free_game, TRUE, solve_game, - TRUE, game_text_format, + TRUE, game_can_format_as_text_now, game_text_format, new_ui, free_ui, encode_ui,