chiark / gitweb /
Forbid undo of new-game if it would change the params.
[sgt-puzzles.git] / galaxies.c
index a50efe45ff899215d2827a4b7f1b5c60e302d148..f4f75c629c7889b506b48c7c36f087e939003a37 100644 (file)
@@ -1301,6 +1301,8 @@ generate:
 
     game_update_dots(state);
 
+    if (state->ndots == 1) goto generate;
+
 #ifdef DEBUGGING
     {
         char *tmp = encode_game(state);
@@ -3631,7 +3633,7 @@ static void game_print(drawing *dr, const game_state *state, int sz)
 const struct game thegame = {
     "Galaxies", "games.galaxies", "galaxies",
     default_params,
-    game_fetch_preset,
+    game_fetch_preset, NULL,
     decode_params,
     encode_params,
     free_params,