From ef059e59daf05c1addd7bdb2e60047fe24b83880 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 2 May 2005 13:22:25 +0000 Subject: [PATCH] Ahem. The `Solve' option in orientable Twiddle needs to correct the orientations as well as the order! git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5733 cda61777-01e9-0310-a592-d414129be87e --- twiddle.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twiddle.c b/twiddle.c index 8a389b4..d67dc40 100644 --- a/twiddle.c +++ b/twiddle.c @@ -479,6 +479,7 @@ static game_state *solve_game(game_state *state, game_aux_info *aux, char **error) { game_state *ret = dup_game(state); + int i; /* * Simply replace the grid with a solved one. For this game, @@ -488,6 +489,8 @@ static game_state *solve_game(game_state *state, game_aux_info *aux, * which to practise manoeuvres. */ qsort(ret->grid, ret->w*ret->h, sizeof(int), compare_int); + for (i = 0; i < ret->w*ret->h; i++) + ret->grid[i] &= ~3; ret->used_solve = ret->just_used_solve = TRUE; ret->completed = ret->movecount; -- 2.11.0