X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=11dcdb34f13840a1b8ff43a7b08df4273fe972f9;hp=3c638ca057f5e1c3c515498e005cecf88a111c8e;hb=44236f4ed9844598e1cb065937c3770a938964b2;hpb=5410424e3d036b43715c7989aa99e449cdcde18e;ds=inline diff --git a/src/search.cpp b/src/search.cpp index 3c638ca0..11dcdb34 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -277,7 +277,7 @@ void MainThread::search() { // the UCI protocol states that we shouldn't print the best move before the // GUI sends a "stop" or "ponderhit" command. We therefore simply wait here // until the GUI sends one of those commands (which also raises Threads.stop). - if (!Threads.stop && (Threads.ponder || Limits.infinite)) + if (!Threads.stop && (Limits.ponder || Limits.infinite)) { Threads.stopOnPonderhit = true; wait(Threads.stop); @@ -499,7 +499,7 @@ void Thread::search() { { // If we are allowed to ponder do not stop the search now but // keep pondering until the GUI sends "ponderhit" or "stop". - if (Threads.ponder) + if (Limits.ponder) Threads.stopOnPonderhit = true; else Threads.stop = true; @@ -1489,7 +1489,7 @@ moves_loop: // When in check search starts from here } // An engine may not stop pondering until told so by the GUI - if (Threads.ponder) + if (Limits.ponder) return; if ( (Limits.use_time_management() && elapsed > Time.maximum() - 10)