X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/741706e742744446d51c8af5e3fa25dc5a966f0b..826e0298fa89ec38199e45ff9202314882dcab23:/unfinished/slide.c diff --git a/unfinished/slide.c b/unfinished/slide.c index d32473c..3ea3c95 100644 --- a/unfinished/slide.c +++ b/unfinished/slide.c @@ -821,6 +821,9 @@ static void generate_board(int w, int h, int *rtx, int *rty, int *minmoves, } } + sfree(dsf); + sfree(list); + sfree(tried_merge); sfree(board2); *rtx = tx; @@ -2290,6 +2293,11 @@ static float game_flash_length(game_state *oldstate, game_state *newstate, return 0.0F; } +static int game_is_solved(game_state *state) +{ + return state->completed; +} + static int game_timing_state(game_state *state, game_ui *ui) { return TRUE; @@ -2338,6 +2346,7 @@ const struct game thegame = { game_redraw, game_anim_length, game_flash_length, + game_is_solved, FALSE, FALSE, game_print_size, game_print, TRUE, /* wants_statusbar */ FALSE, game_timing_state,