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://hgm.nubati.net/cgi-bin/gitweb.cgi?p=xboard.git;a=commitdiff_plain;h=5ee8e941988eabf2627f6228ae7f78fee3b685bf;hp=de8c5060e4d63e6eedc8f0d0e77d23712c04ffe1 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 43e12ec3..1e9787e9 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) {