X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/81b09746e9d32b515f8138f7f8ebae53a29f731d..6bb2af847d3bad4f2a544ad7a428f7063fd1991a:/solo.c diff --git a/solo.c b/solo.c index 1879a98..cbf00c5 100644 --- a/solo.c +++ b/solo.c @@ -2779,10 +2779,10 @@ static game_state *new_game(midend *me, game_params *params, char *desc) if (*desc == '_') c = 0; - else if (*desc >= 'a' && *desc <= 'z') + else { + assert(*desc >= 'a' && *desc <= 'z'); c = *desc - 'a' + 1; - else - assert(!"Shouldn't get here"); + } desc++; adv = (c != 25); /* 'z' is a special case */ @@ -3162,6 +3162,11 @@ static char *grid_text_format(int cr, struct block_structure *blocks, return ret; } +static int game_can_format_as_text_now(game_params *params) +{ + return TRUE; +} + static char *game_text_format(game_state *state) { return grid_text_format(state->cr, state->blocks, state->xtype, @@ -3935,7 +3940,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,