src/game.c

changeset 117
ee539a9691f0
parent 116
4bf18d42e7ee
--- a/src/game.c	Tue Apr 28 12:33:22 2026 +0200
+++ b/src/game.c	Wed Apr 29 17:28:03 2026 +0200
@@ -181,7 +181,9 @@
 }
 
 static void save_pgn(GameState *gamestate, GameInfo *gameinfo) {
-    printw("Filename: ");
+    bool export_comments = prompt_yesno("Export with comments");
+
+    printw("\rFilename: ");
     clrtoeol();
     refresh();
     
@@ -191,7 +193,7 @@
         move(y, 0);
         FILE *file = fopen(filename, "w");
         if (file) {
-            write_pgn(file, gamestate, gameinfo);
+            write_pgn(file, gamestate, gameinfo, export_comments);
             fclose(file);
             printw("File saved.");
         } else {

mercurial