]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Full bonus for LMR stats update
[stockfish] / src / search.cpp
index ea0c64f1ea01c610e3a11b7744a5e282589fb5f6..bd5ae75e0582145276a7f6d3f7681d7bf3e8d02f 100644 (file)
@@ -1134,9 +1134,8 @@ moves_loop: // When in check, search starts from here
 
           if (doLMR && !captureOrPromotion)
           {
-              int bonus = stat_bonus(newDepth) / 2;
-              if (value <= alpha)
-                  bonus = -bonus;
+              int bonus = value > alpha ?  stat_bonus(newDepth)
+                                        : -stat_bonus(newDepth);
 
               update_continuation_histories(ss, movedPiece, to_sq(move), bonus);
           }