From: H.G. Muller Date: Sun, 9 Dec 2012 17:50:41 +0000 (+0100) Subject: Fix pause in ponder-off games X-Git-Tag: v2.0~27 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ec2b5e72ae93d42e3556469abde71f90d2c09254;p=uci2wb.git Fix pause in ponder-off games --- 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