Add the ability to use the Rectangles solver for actually solving
[sgt/puzzles] / netslide.c
index 6ae9569..6bac447 100644 (file)
@@ -645,6 +645,7 @@ static char *new_game_desc(game_params *params, random_state *rs,
         }
     }
     assert(p - desc <= w*h*3);
+    *p = '\0';
 
     sfree(tiles);
     sfree(barriers);
@@ -1005,6 +1006,8 @@ static game_state *make_move(game_state *state, game_ui *ui,
     int n, dx, dy;
     game_state *ret;
 
+    button &= ~MOD_MASK;
+
     if (button != LEFT_BUTTON && button != RIGHT_BUTTON)
         return NULL;