X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=7fafe933d5fda20eb2f9d60bb678c0cc796e4d81;hp=9dfa5193e99fd3e2e16889e6182470700aba58fa;hb=5cffc032da8402df79cf6cba4238b83ff5d29f7e;hpb=2731bbaf6b4bed23abaae8de5c1fa9f373e30e57 diff --git a/src/search.cpp b/src/search.cpp index 9dfa5193..7fafe933 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -725,8 +725,8 @@ namespace { // Step 6. Razoring (skipped when in check) if ( !PvNode && depth < 4 * ONE_PLY - && eval + razor_margin[depth / ONE_PLY] <= alpha - && ttMove == MOVE_NONE) + && ttMove == MOVE_NONE + && eval + razor_margin[depth / ONE_PLY] <= alpha) { if ( depth <= ONE_PLY && eval + razor_margin[3 * ONE_PLY] <= alpha) @@ -924,8 +924,8 @@ moves_loop: // When in check search starts from here && !captureOrPromotion && !inCheck && !givesCheck - && !pos.advanced_pawn_push(move) - && bestValue > VALUE_MATED_IN_MAX_PLY) + && bestValue > VALUE_MATED_IN_MAX_PLY + && !pos.advanced_pawn_push(move)) { // Move count based pruning if (moveCountPruning)