From: H.G. Muller Date: Mon, 14 Feb 2011 10:09:24 +0000 (+0100) Subject: Fix showing of user move after adjudication X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0a2787b3e3ab9b35474fb02effb013f5f0c59e4e;p=xboard.git Fix showing of user move after adjudication The correction of the fishy patch (removing ShowMove() from Adjudicate()) had broken the adjudication of user moves (that actually did work before the fishy patch, because there the gobal fromX/Y and toX/Y do contain the correct values for the move to be shown). An entered move that led to adjudication (like a checkmate) now was not displayed at all. Adding an extra ShowMove() after (successful) return of Adudicate() solves it. --- diff --git a/backend.c b/backend.c index ae15f1a..d281a92 100644 --- a/backend.c +++ b/backend.c @@ -6188,7 +6188,10 @@ FinishMove(moveType, fromX, fromY, toX, toY, promoChar) MakeMove(fromX, fromY, toX, toY, promoChar); /*updates forwardMostMove*/ - if(Adjudicate(NULL)) return 1; // [HGM] adjudicate: take care of automtic game end + if(Adjudicate(NULL)) { // [HGM] adjudicate: take care of automatic game end + ShowMove(fromX, fromY, toX, toY); /*updates currentMove*/ + return 1; + } if (gameMode == BeginningOfGame) { if (appData.noChessProgram) {