From acbc3cdad54dc2dcb7075cfc48a3956e137a2f1d Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 27 Sep 2009 12:27:44 -0700 Subject: [PATCH] fix for edit-position "moves" being sent by XBoard to the engine --- backend.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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); } -- 1.7.0.4