]> git.sesse.net Git - stockfish/commitdiff
Fix printing of PV info
authorMarco Costalba <mcostalba@gmail.com>
Fri, 12 Jul 2013 21:42:42 +0000 (23:42 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 12 Jul 2013 21:42:42 +0000 (23:42 +0200)
It was erroneusly skipped after the
aspiration window rework.

Reported by Eelco.

No functional change.

src/search.cpp

index 23629e6db9c0ebbdbf1d48a25081b485367ba76b..7fcf4bcbf18f4b1ec335133d63b580c465c8a19b 100644 (file)
@@ -367,6 +367,10 @@ namespace {
                 if (Signals.stop)
                     return;
 
                 if (Signals.stop)
                     return;
 
+                // Give some update (without cluttering the UI) before to research
+                if (Time::now() - SearchTime > 3000)
+                    sync_cout << uci_pv(pos, depth, alpha, beta) << sync_endl;
+
                 // In case of failing low/high increase aspiration window and
                 // research, otherwise exit the loop.
                 if (bestValue <= alpha)
                 // In case of failing low/high increase aspiration window and
                 // research, otherwise exit the loop.
                 if (bestValue <= alpha)
@@ -385,10 +389,6 @@ namespace {
                 delta += delta / 2;
 
                 assert(alpha >= -VALUE_INFINITE && beta <= VALUE_INFINITE);
                 delta += delta / 2;
 
                 assert(alpha >= -VALUE_INFINITE && beta <= VALUE_INFINITE);
-
-                // Give some update (without cluttering the UI) before to research
-                if (Time::now() - SearchTime > 3000)
-                    sync_cout << uci_pv(pos, depth, alpha, beta) << sync_endl;
             }
 
             // Sort the PV lines searched so far and update the GUI
             }
 
             // Sort the PV lines searched so far and update the GUI