X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/7205bbfb761246d3b3f3d4f5617dedcea3e58bc3..a36a26d73183965c4286f71ede896ccdbf8d5102:/unfinished/slide.c diff --git a/unfinished/slide.c b/unfinished/slide.c index 84639ed..af8f210 100644 --- a/unfinished/slide.c +++ b/unfinished/slide.c @@ -651,7 +651,7 @@ static void generate_board(int w, int h, int *rtx, int *rty, int *minmoves, int *list, nlist, pos; int tx, ty; int i, j; - int moves; + int moves = 0; /* placate optimiser */ /* * Set up a board and fill it with singletons, except for a @@ -1166,6 +1166,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) { return board_text_format(state->w, state->h, state->board, @@ -2317,7 +2322,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,