X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=a9fc1c6d4c80b41aec8c20c4b6b2e7c070760050;hp=4f4092ffe2bcae830f54ba84fc62c42ede9ab094;hb=d39ffbeea6ad54c90123a352d50b65c5bda1561b;hpb=3ab3e55bb5faf57aec864f3bb7268601c11d72be diff --git a/src/search.cpp b/src/search.cpp index 4f4092ff..a9fc1c6d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -316,8 +316,7 @@ void MainThread::search() { Depth depthDiff = th->completedDepth - bestThread->completedDepth; Value scoreDiff = th->rootMoves[0].score - bestThread->rootMoves[0].score; - if ( (depthDiff > 0 && scoreDiff >= 0) - || (scoreDiff > 0 && depthDiff >= 0)) + if (scoreDiff > 0 && depthDiff >= 0) bestThread = th; } }