]> git.sesse.net Git - stockfish/blobdiff - src/search.h
Simplify use_time_management() and allow composing
[stockfish] / src / search.h
index a900d094b0c88fdaf03172a5d550716b5518b042..3e855c8bf34b82a53b46f64dc177404abe20ee85 100644 (file)
@@ -49,6 +49,7 @@ struct Stack {
   Value staticEval;
   int statScore;
   int moveCount;
+  bool inCheck;
 };
 
 
@@ -90,7 +91,7 @@ struct LimitsType {
   }
 
   bool use_time_management() const {
-    return !(mate | movetime | depth | nodes | perft | infinite);
+    return time[WHITE] || time[BLACK];
   }
 
   std::vector<Move> searchmoves;