X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=c98c3334edb97f0a406b62fa864d6c06e4156b2a;hp=0b4125fcdd6ccf05279c848c1257eed89c042343;hb=c94145b65c21bdca71f1a8248dee8d19d974f555;hpb=8e45e70e55c42c4750ccb729dcd49cdaafe5af44 diff --git a/src/search.cpp b/src/search.cpp index 0b4125fc..c98c3334 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -805,7 +805,7 @@ namespace { { Depth d = depth - 2 * ONE_PLY - (PvNode ? DEPTH_ZERO : depth / 4); ss->skipEarlyPruning = true; - search(pos, ss, alpha, beta, d, true); + search(pos, ss, alpha, beta, d, cutNode); ss->skipEarlyPruning = false; tte = TT.probe(posKey, ttHit); @@ -823,7 +823,7 @@ moves_loop: // When in check search starts from here CheckInfo ci(pos); value = bestValue; // Workaround a bogus 'uninitialized' warning under gcc improving = ss->staticEval >= (ss-2)->staticEval - || ss->staticEval == VALUE_NONE + /* || ss->staticEval == VALUE_NONE Already implicit in the previous condition */ ||(ss-2)->staticEval == VALUE_NONE; singularExtensionNode = !rootNode @@ -873,9 +873,9 @@ moves_loop: // When in check search starts from here && moveCount >= FutilityMoveCounts[improving][depth]; // Step 12. Extend checks - if ( givesCheck - && ( moveCount == 1 - || (!moveCountPruning && pos.see_sign(move) >= VALUE_ZERO))) + if ( givesCheck + && !moveCountPruning + && pos.see_sign(move) >= VALUE_ZERO) extension = ONE_PLY; // Singular extension search. If all moves but one fail low on a search of