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=5ee8e941988eabf2627f6228ae7f78fee3b685bf;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 43e12ec..1e9787e 100644 --- a/backend.c +++ b/backend.c @@ -8013,6 +8013,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) {