X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.h;h=3e855c8bf34b82a53b46f64dc177404abe20ee85;hp=a900d094b0c88fdaf03172a5d550716b5518b042;hb=a84e3ac287fa2c2db5ee58faabdb31943acc78d0;hpb=09bef14c76e119103cc1a9404cbde7e249205deb diff --git a/src/search.h b/src/search.h index a900d094..3e855c8b 100644 --- a/src/search.h +++ b/src/search.h @@ -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 searchmoves;