From: H.G. Muller Date: Fri, 28 May 2010 09:07:06 +0000 (+0200) Subject: Fix e.p. bug in xiangqi with -serverMoves option X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=5091c2a8e906c2358ce5aad116b8ce3f13a61a14;p=xboard.git 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. --- 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)