From: H.G.Muller <hgm@hgm-xboard.(none)>
Date: Thu, 6 Mar 2014 12:57:23 +0000 (+0100)
Subject: Handle time and otim commands during ponder search
X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3d8fafcd8eb7ca223e5b0db8d2f7df38eb28af83;p=gnushogi.git

Handle time and otim commands during ponder search

Do not backlog time and otim commands when they come while searching,
but handle them immediately without aborting the search.
---

diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c
index 56fe08b..1790e5f 100644
--- a/gnushogi/commondsp.c
+++ b/gnushogi/commondsp.c
@@ -1726,7 +1726,7 @@ InputCommand(char *command, int root)
         if (sscanf(sx, "%s", s) < 1)
             continue;
 
-        if (!root && strcmp(s, "."))
+        if (!root && strcmp(s, ".") && strcmp(s, "time") && strcmp(s, "otim"))
         {   /* during search most commands can only be done after abort */
             strcpy(backlog, sx); /* backlog the command    */
             return true;         /* and order search abort */