X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=ce49de27e8a3dcc566afe0dbbe3ebe5d2f6f259d;hb=8c4c0bf587788e3cb10e3f47e21f2acd7c5816d6;hp=3dce31ae3cc48d0d1dfe43f21bd85c8512b1a2e7;hpb=f3c79e09622f2436b81f6c302bd619caacdeb3b3;p=xboard.git diff --git a/backend.c b/backend.c index 3dce31a..ce49de2 100755 --- a/backend.c +++ b/backend.c @@ -5564,12 +5564,12 @@ UserMoveEvent(fromX, fromY, toX, toY, promoChar) FinishMove if the first part succeeded. Calls that do not need to do anything in between, can call this routine the old way. */ - ChessMove moveType = UserMoveTest(fromX, fromY, toX, toY, promoChar, FALSE); -if(appData.debugMode) fprintf(debugFP, "moveType 4 = %d, promochar = %x\n", moveType, promoChar); - if(moveType == AmbiguousMove) - DrawPosition(FALSE, boards[currentMove]); - else if(moveType != ImpossibleMove && moveType != Comment) - FinishMove(moveType, fromX, fromY, toX, toY, promoChar); + ChessMove moveType = UserMoveTest(fromX, fromY, toX, toY, promoChar, FALSE); + if(appData.debugMode) fprintf(debugFP, "moveType 4 = %d, promochar = %x\n", moveType, promoChar); + if(moveType == AmbiguousMove) + DrawPosition(FALSE, boards[currentMove]); + else if(moveType != ImpossibleMove && moveType != Comment) + FinishMove(moveType, fromX, fromY, toX, toY, promoChar); } void LeftClick(ClickType clickType, int xPix, int yPix)