]> git.sesse.net Git - stockfish/commitdiff
Revert evaluation drift
authorMarco Costalba <mcostalba@gmail.com>
Sun, 20 Sep 2009 18:39:54 +0000 (19:39 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 20 Sep 2009 18:39:54 +0000 (19:39 +0100)
Still not clear if it helps and, especially, how it
helps. So revert for now to avoid any influence on
future feature now under test.

With this patch we come back to be functional
equivalent to patch e33c94883 F_53.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index 06cc9b60fc97155cf6687422ad5d2b8b2de1eb5b..0c9f1ee703ef3dd188710826d2c7e2d3713c9354 100644 (file)
@@ -1540,10 +1540,10 @@ namespace {
         // Use the cached evaluation score if possible
         assert(ei.futilityMargin == Value(0));
 
-        staticValue = tte->value() + 7;
+        staticValue = tte->value();
     }
     else
-        staticValue = evaluate(pos, ei, threadID) + 7;
+        staticValue = evaluate(pos, ei, threadID);
 
     if (ply == PLY_MAX - 1)
         return evaluate(pos, ei, threadID);