diff options
Diffstat (limited to 'mbbsd/chc.c')
-rw-r--r-- | mbbsd/chc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/chc.c b/mbbsd/chc.c index 6f53bc8b..40b190fa 100644 --- a/mbbsd/chc.c +++ b/mbbsd/chc.c @@ -438,8 +438,10 @@ chc_genlog(ChessInfo* info, FILE* fp, ChessGameResult result) chc_init_board(board); for (i = 0; i < nStep; ++i) { const drc_t *move = (const drc_t*) ChessHistoryRetrieve(info, i); - chc_log_step(fp, board, move); - chc_movechess(board, move); + if (move->type == CHESS_STEP_NORMAL) { + chc_log_step(fp, board, move); + chc_movechess(board, move); + } } if (result == CHESS_RESULT_TIE) |