src/chess/pgn.c

changeset 65
dcc5bd2c56c0
parent 64
4eda5df55f86
child 70
5427beba96d1
--- a/src/chess/pgn.c	Wed Aug 29 13:55:18 2018 +0200
+++ b/src/chess/pgn.c	Wed Aug 29 14:01:41 2018 +0200
@@ -199,7 +199,7 @@
         // TODO: move time and maybe other comments
         
         /* line break every 10 moves */
-        if (i % 20)  {
+        if ((i-1) % 20)  {
             fputc(' ', stream);
         } else {
             fputc('\n', stream);

mercurial