]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simplify capture bonus
[stockfish] / src / search.cpp
index 2185a3214fc59dd651c3e6639669cbcead83d7df..5e3e61b2011925bd3fad886481325098e3ecf634 100644 (file)
@@ -1166,8 +1166,7 @@ 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 + (bestValue > beta + KnightValueMg ? ONE_PLY : DEPTH_ZERO)));
+            update_capture_stats(pos, bestMove, capturesSearched, captureCount, stat_bonus(depth + ONE_PLY));
 
         // Extra penalty for a quiet TT move in previous ply when it gets refuted
         if ((ss-1)->moveCount == 1 && !pos.captured_piece())