From: H.G. Muller Date: Mon, 26 Aug 2013 09:28:54 +0000 (+0200) Subject: Fix GUI book after setup position X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=913d225a639d57b15e06f980d678871bd5556867;p=xboard.git 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. --- 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) {