Add time increment after move in XBoard mode
[gnushogi.git] / gnushogi / search.c
index ee7b402..f950a6d 100644 (file)
@@ -451,8 +451,11 @@ SelectMove(short side, SelectMove_mode iop)
 
     /* If Time Control get the elapsed time */
     if (TCflag)
+    {
         ElapsedTime(COMPUTE_AND_INIT_MODE);
-
+        if(xboard) /* In XBoard increment is added after move */
+            TimeControl.clock[side] += TCadd;
+    }
     /* update time control info */
     dsp->OutputMove();