From: H.G.Muller Date: Wed, 1 Jan 2020 19:10:07 +0000 (+0100) Subject: Clear highlights and targets when accepting setup command X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c0130cf9ba513efb67761d572d262d01a0588e39;p=xboard.git Clear highlights and targets when accepting setup command Any form of highlighting should no longer apply when the engine orders a new position, and the next click will be selection of a piece to move. --- diff --git a/backend.c b/backend.c index c0e4139..a5c189b 100644 --- a/backend.c +++ b/backend.c @@ -9374,6 +9374,7 @@ FakeBookMove: // [HGM] book: we jump here to simulate machine moves after book h ParseFEN(boards[0], &dummy, message+s, FALSE); CopyBoard(initialPosition, boards[0]); if(startedFromSetupPosition) { CopyBoard(boards[0], tmp); return; } + MarkTargetSquares(1); ClearHighlights(); DrawPosition(TRUE, boards[0]); if(gameInfo.variant != VariantPrelude) startedFromSetupPosition = TRUE; return;