diff options
Diffstat (limited to 'apps/plugins/chessbox/chessbox_pgn.c')
-rw-r--r-- | apps/plugins/chessbox/chessbox_pgn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.c b/apps/plugins/chessbox/chessbox_pgn.c index 8b2cb1b2f2..98d9e29431 100644 --- a/apps/plugins/chessbox/chessbox_pgn.c +++ b/apps/plugins/chessbox/chessbox_pgn.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2007 Mauricio Peccorini | 10 | * Copyright (C) 2007 Mauricio Peccorini |
11 | * | 11 | * |
12 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU General Public License | 13 | * modify it under the terms of the GNU General Public License |
@@ -417,7 +417,7 @@ static void coords_to_pgn(struct pgn_ply_node* ply){ | |||
417 | && ply->column_to + kn_offs[i][1] >= 0 && ply->column_to + kn_offs[i][1] <= 7 | 417 | && ply->column_to + kn_offs[i][1] >= 0 && ply->column_to + kn_offs[i][1] <= 7 |
418 | && board[locn[ply->row_to + kn_offs[i][0]][ply->column_to + kn_offs[i][1]]] == knight | 418 | && board[locn[ply->row_to + kn_offs[i][0]][ply->column_to + kn_offs[i][1]]] == knight |
419 | && color[locn[ply->row_to + kn_offs[i][0]][ply->column_to + kn_offs[i][1]]] == ply->player | 419 | && color[locn[ply->row_to + kn_offs[i][0]][ply->column_to + kn_offs[i][1]]] == ply->player |
420 | && (ply->row_to + kn_offs[i][0] != ply->row_from | 420 | && (ply->row_to + kn_offs[i][0] != ply->row_from |
421 | || ply->column_to + kn_offs[i][1] != ply->column_from)){ | 421 | || ply->column_to + kn_offs[i][1] != ply->column_from)){ |
422 | if (ply->row_to + kn_offs[i][0] != ply->row_from){ | 422 | if (ply->row_to + kn_offs[i][0] != ply->row_from){ |
423 | unambiguous_position = '1' + ply->row_from; | 423 | unambiguous_position = '1' + ply->row_from; |
@@ -878,5 +878,5 @@ void pgn_store_game(struct pgn_game_node* game){ | |||
878 | /* leave a blank line between the tag section and the game section */ | 878 | /* leave a blank line between the tag section and the game section */ |
879 | rb->fdprintf(fhandler,"\n\n"); | 879 | rb->fdprintf(fhandler,"\n\n"); |
880 | 880 | ||
881 | rb->close(fhandler); | 881 | rb->close(fhandler); |
882 | } | 882 | } |