]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
More random draw evaluations
[stockfish] / src / search.cpp
index 79942bcdf1cfec5b912aede7cdb246d46b3029ec..2d5fb6305b8d84dde21795edd409d2af2d88285c 100644 (file)
@@ -762,6 +762,9 @@ namespace {
         if (eval == VALUE_NONE)
             ss->staticEval = eval = evaluate(pos);
 
+        if (eval == VALUE_DRAW)
+            eval = value_draw(depth, thisThread);
+
         // Can ttValue be used as a better position evaluation?
         if (    ttValue != VALUE_NONE
             && (tte->bound() & (ttValue > eval ? BOUND_LOWER : BOUND_UPPER)))