shithub: puzzles

Download patch

ref: de5ccc9352d0156600c0ed1e87daac28015e8c01
parent: e663595a5c2e8048f33a27ab911bc9f229231df8
author: Simon Tatham <[email protected]>
date: Wed Feb 28 16:02:31 EST 2007

Gary Wong points out a couple of minor errors in the setting of
`used_solve'.

[originally from svn r7343]

--- a/galaxies.c
+++ b/galaxies.c
@@ -2205,7 +2205,7 @@
             solver_obvious(tmp);
         else
             solver_state(tmp, DIFF_UNREASONABLE-1);
-        ret = diff_game(state, tmp, 0);
+        ret = diff_game(state, tmp, 1);
         free_game(tmp);
         return ret;
     }
@@ -2594,6 +2594,7 @@
 #endif
         } else if (c == 'S') {
             move++;
+	    ret->used_solve = 1;
         } else
             goto badmove;