From c0130cf9ba513efb67761d572d262d01a0588e39 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 1 Jan 2020 20:10:07 +0100 Subject: [PATCH] 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. --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; -- 1.7.0.4