From: H.G. Muller Date: Sat, 8 Jan 2011 23:24:17 +0000 (+0100) Subject: Fishy fix X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=75ec1dc301344d1fe0b6e15592f090d77d567fc0;p=xboard.git 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. --- 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) &&