]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Small tweaks to recent code changes
[stockfish] / src / search.cpp
index e8824b6bf4c6de59b6fb3cba1c50316436147e2d..b4096ebad3559edc4dad28a99091e1365bad910e 100644 (file)
@@ -935,7 +935,7 @@ moves_loop: // When in check, search starts from here
               int lmrDepth = std::max(newDepth - reduction<PvNode>(improving, depth, moveCount), DEPTH_ZERO) / ONE_PLY;
 
               // Countermoves based pruning (~20 Elo)
-              if (   lmrDepth <= ((ss-1)->statScore > 0 ? 3 : 2)
+              if (   lmrDepth < 3 + ((ss-1)->statScore > 0)
                   && (*contHist[0])[movedPiece][to_sq(move)] < CounterMovePruneThreshold
                   && (*contHist[1])[movedPiece][to_sq(move)] < CounterMovePruneThreshold)
                   continue;