Wed, 29 Aug 2018 14:01:41 +0200
PGN output now correctly breaks after black has also moved
src/chess/pgn.c | file | annotate | diff | comparison | revisions |
1.1 --- a/src/chess/pgn.c Wed Aug 29 13:55:18 2018 +0200 1.2 +++ b/src/chess/pgn.c Wed Aug 29 14:01:41 2018 +0200 1.3 @@ -199,7 +199,7 @@ 1.4 // TODO: move time and maybe other comments 1.5 1.6 /* line break every 10 moves */ 1.7 - if (i % 20) { 1.8 + if ((i-1) % 20) { 1.9 fputc(' ', stream); 1.10 } else { 1.11 fputc('\n', stream);