From: H.G. Muller Date: Sun, 27 Sep 2009 19:27:44 +0000 (-0700) Subject: fix for edit-position "moves" being sent by XBoard to the engine X-Git-Tag: v4.4.1.20091019~71 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=acbc3cdad54dc2dcb7075cfc48a3956e137a2f1d;p=xboard.git fix for edit-position "moves" being sent by XBoard to the engine --- diff --git a/backend.c b/backend.c index 912acb2..47c7687 100644 --- a/backend.c +++ b/backend.c @@ -5441,7 +5441,9 @@ UserMoveEvent(fromX, fromY, toX, toY, promoChar) */ ChessMove moveType = UserMoveTest(fromX, fromY, toX, toY, promoChar); if(appData.debugMode) fprintf(debugFP, "moveType 4 = %d, promochar = %x\n", moveType, promoChar); - if(moveType != ImpossibleMove) + if(moveType == AmbiguousMove) + DrawPosition(FALSE, boards[currentMove]); + else if(moveType != ImpossibleMove) FinishMove(moveType, fromX, fromY, toX, toY, promoChar); }