]> git.sesse.net Git - stockfish/blobdiff - src/search.h
Simplify use_time_management() and allow composing
[stockfish] / src / search.h
index 1653ce9237c0e46122a10a72439e08f370b01483..3e855c8bf34b82a53b46f64dc177404abe20ee85 100644 (file)
@@ -91,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;