]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Introduce depth limited benchmarking
[stockfish] / src / search.cpp
index 1110faaae2fcb355343e54809eae49601064c55c..3f4ad24ca17652319456568ef0169d1ab1ecd7e4 100644 (file)
@@ -431,7 +431,7 @@ void think(const Position &pos, bool infinite, bool ponder, int side_to_move,
 
   if (!movesToGo) // Sudden death time control
   {
-      if (increment)
+      if (myIncrement)
       {
           MaxSearchTime = myTime / 30 + myIncrement;
           AbsoluteMaxSearchTime = Max(myTime / 4, myIncrement - 100);
@@ -1430,7 +1430,6 @@ namespace {
       // Don't search captures and checks with negative SEE values
       if (   !isCheck
           && !move_promotion(move)
-          && !pvNode
           && (pos.midgame_value_of_piece_on(move_from(move)) >
               pos.midgame_value_of_piece_on(move_to(move)))
           &&  pos.see(move) < 0)