From 5091c2a8e906c2358ce5aad116b8ce3f13a61a14 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 28 May 2010 11:07:06 +0200 Subject: [PATCH] Fix e.p. bug in xiangqi with -serverMoves option Sideway Pawn moves were written as e.p. captures in the file with moves, which led to disappearence of pieces in the viewer. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index f5f9f99..742bf03 100644 --- a/backend.c +++ b/backend.c @@ -8581,7 +8581,7 @@ MakeMove(fromX, fromY, toX, toY, promoChar) if( (boards[forwardMostMove][fromY][fromX] == WhitePawn || boards[forwardMostMove][fromY][fromX] == BlackPawn ) && boards[forwardMostMove][toY][toX] == EmptySquare - && fromX != toX ) + && fromX != toX && fromY != toY) fprintf(serverMoves, ":%c%c:%c%c", AAA+fromX, ONE+fromY, AAA+toX, ONE+fromY); // promotion suffix if(promoChar != NULLCHAR) -- 1.7.0.4