X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=340ddfc1d97f68834ff88304a72bc398c13d4874;hp=f0c1bdd978e14fdc661c2a4041bb220fce343055;hb=aaf17326e2db5f8bc6664c69e1c3e7fe59cde4ec;hpb=2ca142a5b4ca200c56cb99495ec51a804983d07d diff --git a/src/search.cpp b/src/search.cpp index f0c1bdd9..340ddfc1 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1302,8 +1302,7 @@ moves_loop: // When in check and at SpNode search starts from here // Detect non-capture evasions that are candidates to be pruned evasionPrunable = InCheck && bestValue > VALUE_MATED_IN_MAX_PLY - && !pos.capture(move) - && !pos.can_castle(pos.side_to_move()); + && !pos.capture(move); // Don't search moves with negative SEE values if ( (!InCheck || evasionPrunable)