]> git.sesse.net Git - stockfish/commitdiff
Fix previous patch in case of ponder
authorxoto10 <buylow001@gmail.com>
Mon, 13 Jan 2020 09:05:49 +0000 (09:05 +0000)
committerStéphane Nicolet <cassio@free.fr>
Mon, 13 Jan 2020 09:47:14 +0000 (10:47 +0100)
No functional change

src/search.cpp

index ec9c6b1d0507c77734f92fe8d3a7d067de2334d4..7804119febe3f613aeb76a89da3966ac62d43d46 100644 (file)
@@ -564,6 +564,7 @@ void Thread::search() {
                   Threads.stop = true;
           }
           else if (   Threads.increaseDepth
                   Threads.stop = true;
           }
           else if (   Threads.increaseDepth
+                   && !mainThread->ponder
                    && Time.elapsed() > Time.optimum() * fallingEval * reduction * bestMoveInstability * 0.6)
                    Threads.increaseDepth = false;
           else
                    && Time.elapsed() > Time.optimum() * fallingEval * reduction * bestMoveInstability * 0.6)
                    Threads.increaseDepth = false;
           else