]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Revert "Do IID also when we already have a ttMove"
[stockfish] / src / search.cpp
index af32165c656d18ed96ba8367a5979312f5d039af..a97d3e025b070922448486522a7c1068d68d2d44 100644 (file)
@@ -1237,7 +1237,7 @@ namespace {
 
     // Step 9. Internal iterative deepening
     if (    depth >= IIDDepth[PvNode]
-        && (ttMove == MOVE_NONE || (PvNode && tte->depth() <= depth - 4 * OnePly))
+        &&  ttMove == MOVE_NONE
         && (PvNode || (!isCheck && ss->eval >= beta - IIDMargin)))
     {
         Depth d = (PvNode ? depth - 2 * OnePly : depth / 2);
@@ -1948,7 +1948,7 @@ namespace {
 
     if (*dangerous)
     {
-        if (moveIsCheck)
+        if (moveIsCheck && pos.see_sign(m)>= 0)
             result += CheckExtension[PvNode];
 
         if (singleEvasion)