X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/fa3abef5abe95dd9668a87b1cc57a724dcbf6354..b21345d458b5ea10f110a59b7522fe602cc1b9ea:/fifteen.c diff --git a/fifteen.c b/fifteen.c index e74d10a..338a993 100644 --- a/fifteen.c +++ b/fifteen.c @@ -830,6 +830,11 @@ static float game_flash_length(game_state *oldstate, 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; @@ -878,6 +883,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,