X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=045657cc00f8a3d343ee4e5d1f751b4ce2e704ac;hb=b7a79fc5f838b5553d9d48ac26afad1c21111e95;hp=8d016bc0d6c137048b5d6917a0c9f784bfc647c2;hpb=36fca099ff6d67b7df504606ffa15e8e5e8c66bb;p=xboard.git diff --git a/backend.c b/backend.c index 8d016bc..045657c 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); } @@ -7550,7 +7552,7 @@ void SendEgtPath(ChessProgramState *cps) while(*r && *r != ',') r++; // path info is everything upto next ';' or end of string c = *r; *r = 0; // temporarily null-terminate path info *--q = 0; // strip of trailig ':' from name - sprintf(buf, "egtbpath %s %s\n", name+1, s); + sprintf(buf, "egtpath %s %s\n", name+1, s); *r = c; SendToProgram(buf,cps); // send egtbpath command for this format } @@ -10541,6 +10543,7 @@ MachineWhiteEvent() SetMachineThinkingEnables(); first.maybeThinking = TRUE; StartClocks(); + firstMove = FALSE; if (appData.autoFlipView && !flipView) { flipView = !flipView;