X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=d9543899a0f7844e2b817b3e2095f321a8ca51fc;hp=50bce13c309370fa7859073be858121aa2948ff5;hb=46ce245763705c89dba60dcfda549dc1f64eb48b;hpb=a9cca5c953e6ccec865102b13b47b9f45d98a0fc diff --git a/src/search.cpp b/src/search.cpp index 50bce13c..d9543899 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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; }