Page 1 of 1

Bug in Time Control?

PostPosted: 29 Jun 2011, 18:43
by John Cheetham
This relates to xboard from the savannah git master branch.
I set the TC to a fixed 8 seconds per move by selecting time control, click the fixed max button, enter 8 in the max sec/move box, click OK.
This works fine.

The problem is when I want to switch back to classical TC it won't do it. I select new game, go into time control, click the classical button, select 40 moves in 5 mins and click OK. However xboard still uses the old 8 seconds per move from the previous fixed settings.

Re: Bug in Time Control?

PostPosted: 29 Jun 2011, 19:47
by H.G.Muller
Indeed, a bug in the new TC dialog. I forgot to reset 'searchTime' when another mode ended up being chosen on OK, and when searchTime > 0 is the signal for XBoard to use fixed time per move, no matter what the other parameters are.

Fixing it also drew my attention to another bug, writing searchTime to the tournament file. So we got two in one blow. I pushed the patches to hgmaster branch in hgm.nubati.net (which by now also contains some fixes I rebased out of the aliennew branch, where the corresponding problems became apparent).

Thanks for spotting this!