ref: c2273f2718b52fef1638baed4e4e383e221c53f2
parent: d8cc157c5516138090bd92b9bb70044da0e7842d
author: Simon Tatham <anakin@pobox.com>
date: Mon May 2 09:22:25 EDT 2005
Ahem. The `Solve' option in orientable Twiddle needs to correct the orientations as well as the order! [originally from svn r5733]
--- a/twiddle.c
+++ b/twiddle.c
@@ -479,6 +479,7 @@
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 @@
* 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;