X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=4e6358c0d804f91fd6e8b038ec33e8c605b3e739;hb=f7bae2de82347c61897b8de62d294dd0e4fc579e;hp=b87c689479d2a7909667a591d31c49b6b6cc21d4;hpb=a0486ecb40513db8141fa27c026f64771b8ebb55;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index b87c6894..4e6358c0 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1166,7 +1166,8 @@ moves_loop: // When in check, search starts from here if (!pos.capture_or_promotion(bestMove)) update_quiet_stats(pos, ss, bestMove, quietsSearched, quietCount, stat_bonus(depth)); else - update_capture_stats(pos, bestMove, capturesSearched, captureCount, stat_bonus(depth)); + update_capture_stats(pos, bestMove, capturesSearched, captureCount, + stat_bonus(depth + (bestValue > beta + KnightValueMg ? ONE_PLY : DEPTH_ZERO))); // Extra penalty for a quiet TT move in previous ply when it gets refuted if ((ss-1)->moveCount == 1 && !pos.captured_piece())