Add a limited-shuffle mode like that added to Sixteen and Twiddle in r5769,
[sgt/puzzles] / pattern.c
index 438243d..e09ed3d 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -769,6 +769,8 @@ static game_state *make_move(game_state *from, game_ui *ui,
 {
     game_state *ret;
 
+    button &= ~MOD_MASK;
+
     x = FROMCOORD(from->w, x);
     y = FROMCOORD(from->h, y);
 
@@ -1206,7 +1208,8 @@ int main(int argc, char **argv)
     }
     *desc++ = '\0';
 
-    p = decode_params(id);
+    p = default_params();
+    decode_params(p, id);
     err = validate_desc(p, desc);
     if (err) {
         fprintf(stderr, "%s: %s\n", argv[0], err);