projects
/
gnushogi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add time increment after move in XBoard mode
[gnushogi.git]
/
gnushogi
/
search.c
diff --git
a/gnushogi/search.c
b/gnushogi/search.c
index
ee7b402
..
f950a6d
100644
(file)
--- a/
gnushogi/search.c
+++ b/
gnushogi/search.c
@@
-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();