From ec2b5e72ae93d42e3556469abde71f90d2c09254 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 9 Dec 2012 18:50:41 +0100 Subject: [PATCH] Fix pause in ponder-off games --- UCI2WB.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/UCI2WB.c b/UCI2WB.c index 029b34b..cf50631 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -386,7 +386,8 @@ GUI2Engine() } else if(!strcmp(command, "pause")) { if(computer == stm) myTime -= GetTickCount() - startTime; - suspended = 1 + pondering, StopPonder(1); // remember if we were pondering, and stop search ignoring bestmove + suspended = 1 + pondering; // remember if we were pondering, and stop search ignoring bestmove + StopPonder(pondering || computer == stm); } else if(!strcmp(command, "resume")) { if(suspended == 2) StartPonder(); // restart interrupted ponder search -- 1.7.0.4