]> git.sesse.net Git - stockfish/blobdiff - src/search.h
Handle UCI command "mate in x moves"
[stockfish] / src / search.h
index b7475577475246fa6892e309bde68afe6bd19097..600d7a75198500dfd4582f48e76c239ebb5b2a50 100644 (file)
@@ -80,9 +80,9 @@ struct RootMove {
 struct LimitsType {
 
   LimitsType() { memset(this, 0, sizeof(LimitsType)); }
-  bool use_time_management() const { return !(movetime | depth | nodes | infinite); }
+  bool use_time_management() const { return !(mate | movetime | depth | nodes | infinite); }
 
-  int time[COLOR_NB], inc[COLOR_NB], movestogo, depth, nodes, movetime, infinite, ponder;
+  int time[COLOR_NB], inc[COLOR_NB], movestogo, depth, nodes, movetime, mate, infinite, ponder;
 };