]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Quiet move soft fail high bonus
[stockfish] / src / search.cpp
index 5e3e61b2011925bd3fad886481325098e3ecf634..7cc0542ab0cdbb8abeb821593fb2de45816d8209 100644 (file)
@@ -1164,7 +1164,8 @@ moves_loop: // When in check, search starts from here
     {
         // Quiet best move: update move sorting heuristics
         if (!pos.capture_or_promotion(bestMove))
-            update_quiet_stats(pos, ss, bestMove, quietsSearched, quietCount, stat_bonus(depth));
+            update_quiet_stats(pos, ss, bestMove, quietsSearched, quietCount, 
+                                                          stat_bonus(depth + (bestValue > beta + PawnValueMg ? ONE_PLY : DEPTH_ZERO)));
         else
             update_capture_stats(pos, bestMove, capturesSearched, captureCount, stat_bonus(depth + ONE_PLY));