From 0a2787b3e3ab9b35474fb02effb013f5f0c59e4e Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 14 Feb 2011 11:09:24 +0100 Subject: [PATCH] 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. --- backend.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) 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) { -- 1.7.0.4