From 75ec1dc301344d1fe0b6e15592f090d77d567fc0 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 9 Jan 2011 00:24:17 +0100 Subject: [PATCH] Fishy fix The move that delivers checkmate in two-machines mode is not animated when adjudication is on. There then also is no highlighting of this move Redrawing the board and calling ShowMove fixes it. Which is rather strange, because ShowMove was already called in Adjudicate (when it adjudicates), before GameEnds. For reasons that are not understood this call to ShowMove() (which calls AnimateMove()) is not effective. --- backend.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index df586fd..9629342 100644 --- a/backend.c +++ b/backend.c @@ -7369,7 +7369,11 @@ FakeBookMove: // [HGM] book: we jump here to simulate machine moves after book h } } - if(Adjudicate(cps)) return; // [HGM] adjudicate: for all automatic game ends + if(Adjudicate(cps)) { + DrawPosition(FALSE, boards[currentMove = forwardMostMove-1]); + ShowMove(fromX, fromY, toX, toY); /*updates currentMove*/ + return; // [HGM] adjudicate: for all automatic game ends + } #if ZIPPY if ((gameMode == IcsPlayingWhite || gameMode == IcsPlayingBlack) && -- 1.7.0.4