X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Fsearch.c;h=72720950e03313023d7590b615f6db56c53c1033;hb=refs%2Fheads%2Fmini;hp=4b967d0b21a0f4853e9e48b7a350118d728643f4;hpb=ea78287f5e83a2d8c3b65554f853122e470269ff;p=gnushogi.git diff --git a/gnushogi/search.c b/gnushogi/search.c index 4b967d0..7272095 100644 --- a/gnushogi/search.c +++ b/gnushogi/search.c @@ -4,6 +4,7 @@ * ---------------------------------------------------------------------- * Copyright (c) 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation + * Copyright (c) 2008, 2013, 2014 Yann Dirson and the Free Software Foundation * * GNU SHOGI is based on GNU CHESS * @@ -43,6 +44,7 @@ short PVari; /* Is this the PV */ #endif short zwndw; +short movesLeft, currentMove; @@ -871,6 +873,8 @@ search(short side, #endif /* QUIETBACKGROUND */ dsp->ShowCurrentMove(pnt, node->f, node->t); } + movesLeft = TrPnt[2] - pnt; /* to report with XBoard periodic updates */ + currentMove = node->f << 8 | node->t; } if (!(node->flags & exact))