James Harvey points out a missing ifdef.
[sgt/puzzles] / pegs.c
diff --git a/pegs.c b/pegs.c
index 8672513..4cfd4a0 100644 (file)
--- a/pegs.c
+++ b/pegs.c
@@ -486,7 +486,9 @@ static void pegs_generate(unsigned char *grid, int w, int h, random_state *rs)
        printf("insufficient extent; trying again\n");
 #endif
     }
+#ifdef GENERATION_DIAGNOSTICS
     fflush(stdout);
+#endif
 }
 
 /* ----------------------------------------------------------------------
@@ -1069,7 +1071,7 @@ static int game_timing_state(game_state *state)
 #endif
 
 const struct game thegame = {
-    "Pegs", NULL,
+    "Pegs", "games.pegs",
     default_params,
     game_fetch_preset,
     decode_params,