X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=1a4f654d10539a998cc248a5fa5c0c2d2f0eade9;hb=aacee91a5a295f1d9de2ea6dc0ca4a48e934e3b6;hp=a4b2ef348566eb4b62d462e0e8c63b62c1343eae;hpb=76d4a80084f2ff61b0ea433ac829914370736b5e;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index a4b2ef34..1a4f654d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -737,7 +737,7 @@ namespace { && (ss-1)->statScore < 22500 && eval >= beta && ss->staticEval >= beta - 36 * depth / ONE_PLY + 225 - && !ss->excludedMove + && !excludedMove && pos.non_pawn_material(pos.side_to_move()) && (ss->ply >= thisThread->nmp_ply || ss->ply % 2 != thisThread->nmp_odd)) { @@ -1153,7 +1153,7 @@ moves_loop: // When in check, search starts from here update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, -stat_bonus(depth + ONE_PLY)); } // Bonus for prior countermove that caused the fail low - else if ( depth >= 3 * ONE_PLY + else if ( (depth >= 3 * ONE_PLY || PvNode) && !pos.captured_piece() && is_ok((ss-1)->currentMove)) update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth));