From 5ee8e941988eabf2627f6228ae7f78fee3b685bf 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 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) { -- 1.7.0.4