]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simplify SEE Pruning (#2191)
[stockfish] / src / search.cpp
index 50bce13c309370fa7859073be858121aa2948ff5..d9543899a0f7844e2b817b3e2095f321a8ca51fc 100644 (file)
@@ -980,7 +980,7 @@ moves_loop: // When in check, search starts from here
               if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
                   continue;
           }
-          else if ((!givesCheck || !(pos.blockers_for_king(~us) & from_sq(move)))
+          else if ((!givesCheck || !extension)
                   && !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
                   continue;
       }