]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Skip LMR for 2nd move at the root only
[stockfish] / src / search.cpp
index 786d25c615b74253a8cd05be26a13c1a00ca69b7..409a3c1d429aa666c7b67169a10ebb871653fe77 100644 (file)
@@ -1171,7 +1171,7 @@ moves_loop:  // When in check, search starts here
         // We use various heuristics for the sons of a node after the first son has
         // been searched. In general, we would like to reduce them, but there are many
         // cases where we extend a son if it has good chances to be "interesting".
-        if (depth >= 2 && moveCount > 1 + (PvNode && ss->ply <= 1)
+        if (depth >= 2 && moveCount > 1 + rootNode
             && (!ss->ttPv || !capture || (cutNode && (ss - 1)->moveCount > 1)))
         {
             // In general we want to cap the LMR depth search at newDepth, but when