]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simplify and speed up previous patch
[stockfish] / src / search.cpp
index 1abe022aacefa580d699131310127c8a7910437f..f58baf39661190053d1dc64d01090fbacff1ad56 100644 (file)
@@ -1225,10 +1225,11 @@ split_point_start: // At split points actual search starts from here
               continue;
           }
 
-          // Prune moves with negative or equal SEE
+          // Prune moves with negative or equal SEE and also moves with positive
+          // SEE where capturing piece loses a tempo and SEE < beta - futilityBase.
           if (   futilityBase < beta
               && depth < DEPTH_ZERO
-              && pos.see_asymm(move, beta - futilityBase) <= 0)
+              && pos.see(move, beta - futilityBase) <= 0)
           {
               bestValue = std::max(bestValue, futilityBase);
               continue;