]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Tweak statScore condition
[stockfish] / src / search.cpp
index eb8aea24a13abc521c07016787e9ea30f3660b15..07c18012739e5b681f662ed08121650d01a9502f 100644 (file)
@@ -979,10 +979,10 @@ moves_loop: // When in check search starts from here
                              - 4000;
 
               // Decrease/increase reduction by comparing opponent's stat score
-              if (ss->statScore > 0 && (ss-1)->statScore < 0)
+              if (ss->statScore >= 0 && (ss-1)->statScore < 0)
                   r -= ONE_PLY;
 
-              else if (ss->statScore < 0 && (ss-1)->statScore > 0)
+              else if ((ss-1)->statScore >= 0 && ss->statScore < 0)
                   r += ONE_PLY;
 
               // Decrease/increase reduction for moves with a good/bad history