From 913d225a639d57b15e06f980d678871bd5556867 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 26 Aug 2013 11:28:54 +0200 Subject: [PATCH] Fix GUI book after setup position The routine to send move to the engine would automatically append a 'go' is a preious setboard had put the engine in force mode, but this should not happen on a book hit, where the engine should even be put in force mode if it was not yet there. --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index ca486ef..4c30250 100644 --- a/backend.c +++ b/backend.c @@ -8029,6 +8029,7 @@ SendMoveToBookUser (int moveNr, ChessProgramState *cps, int initial) SendToProgram("force\n", cps); cps->bookSuspend = TRUE; // flag indicating it has to be restarted } + if(bookHit) setboardSpoiledMachineBlack = FALSE; // suppress 'go' in SendMoveToProgram if(!initial) SendMoveToProgram(moveNr, cps); // with hit on initial position there is no move // now arrange restart after book miss if(bookHit) { -- 1.7.0.4