mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Ahem. The `Solve' option in orientable Twiddle needs to correct the
orientations as well as the order! [originally from svn r5733]
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user