From: H.G. Muller Date: Fri, 5 Feb 2010 13:39:55 +0000 (+0100) Subject: Repair damage to -autoKibitz done by FICS atomic zippy claim X-Git-Tag: master-20100206~9 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=640c4665697b160cef6ab4b1d429a623b403f867;p=xboard.git Repair damage to -autoKibitz done by FICS atomic zippy claim The sending of -autoKibitz info was also moved back in that patch, but unfortunately to after clearing of the programStats info. Now the clearing has been moved also, to remain after it. --- diff --git a/backend.c b/backend.c index fe325db..4a96139 100644 --- a/backend.c +++ b/backend.c @@ -6617,14 +6617,6 @@ FakeBookMove: // [HGM] book: we jump here to simulate machine moves after book h strcat(machineMove, "\n"); strcpy(moveList[forwardMostMove], machineMove); - /* [AS] Save move info and clear stats for next move */ - pvInfoList[ forwardMostMove ].score = programStats.score; - pvInfoList[ forwardMostMove ].depth = programStats.depth; - pvInfoList[ forwardMostMove ].time = programStats.time; // [HGM] PGNtime: take time from engine stats - ClearProgramStats(); - thinkOutput[0] = NULLCHAR; - hiddenThinkOutputState = 0; - MakeMove(fromX, fromY, toX, toY, promoChar);/*updates forwardMostMove*/ /* [AS] Adjudicate game if needed (note: remember that forwardMostMove now points past the last move) */ @@ -6684,6 +6676,14 @@ if(appData.debugMode) fprintf(debugFP, "nodes = %d, %lld\n", (int) programStats. } #endif + /* [AS] Save move info and clear stats for next move */ + pvInfoList[ forwardMostMove-1 ].score = programStats.score; + pvInfoList[ forwardMostMove-1 ].depth = programStats.depth; + pvInfoList[ forwardMostMove-1 ].time = programStats.time; // [HGM] PGNtime: take time from engine stats + ClearProgramStats(); + thinkOutput[0] = NULLCHAR; + hiddenThinkOutputState = 0; + bookHit = NULL; if (gameMode == TwoMachinesPlay) { /* [HGM] relaying draw offers moved to after reception of move */