]> git.sesse.net Git - stockfish/blobdiff - src/syzygy/tbprobe.cpp
Pass endgame value to evaluate_scale_factor()
[stockfish] / src / syzygy / tbprobe.cpp
index 17326970a49c55194ddc7e37c3a2946306c87a47..7bce67eabea8d1cb5e9d1632ae31de46b688bd5b 100644 (file)
@@ -7,6 +7,8 @@
   this code to other chess engines.
 */
 
+#define NOMINMAX
+
 #include <algorithm>
 
 #include "../position.h"
@@ -622,7 +624,7 @@ int Tablebases::probe_dtz(Position& pos, int *success)
       if (v1 >= 0)
         v = v1;
     } else if (v < 0) {
-      if (v1 >= 0 || v1 < 100)
+      if (v1 >= 0 || v1 < -100)
         v = v1;
     } else if (v > 100) {
       if (v1 > 0)