fix for edit-position "moves" being sent by XBoard to the engine
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 27 Sep 2009 19:27:44 +0000 (12:27 -0700)
committerArun Persaud <arun@nubati.net>
Wed, 30 Sep 2009 05:21:46 +0000 (22:21 -0700)
backend.c

index 912acb2..47c7687 100644 (file)
--- 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);
 }