]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Include file attacks in 'major on pawn'
[stockfish] / src / search.cpp
index 4ca9e9b8c0f834d8ccbcf91e3defdeae9fed24bd..de6c2542d27805a25069290134107ba91583b282 100644 (file)
@@ -726,7 +726,6 @@ namespace {
         &&  depth >= 5 * ONE_PLY
         && !inCheck
         && !ss->skipNullMove
-        &&  excludedMove == MOVE_NONE
         &&  abs(beta) < VALUE_MATE_IN_MAX_PLY)
     {
         Value rbeta = beta + 200;
@@ -948,6 +947,10 @@ split_point_start: // At split points actual search starts from here
           &&  move != ss->killers[1])
       {
           ss->reduction = reduction<PvNode>(depth, moveCount);
+
+          if (!PvNode && cutNode)
+              ss->reduction += ONE_PLY;
+
           if (move == countermoves[0] || move == countermoves[1])
               ss->reduction = std::max(DEPTH_ZERO, ss->reduction-ONE_PLY);