X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.h;h=600d7a75198500dfd4582f48e76c239ebb5b2a50;hb=ea6c1f7a17572f1cd291ffd00e28cfbd3b2947d5;hp=03fa5c640373f73affd8a41818ade11606da5845;hpb=70b1b79264b2a160f72dd2aa92c2f80045e4cd83;p=stockfish diff --git a/src/search.h b/src/search.h index 03fa5c64..600d7a75 100644 --- a/src/search.h +++ b/src/search.h @@ -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; }; @@ -98,7 +98,7 @@ typedef std::auto_ptr > StateStackPtr; extern volatile SignalsType Signals; extern LimitsType Limits; extern std::vector RootMoves; -extern Position RootPosition; +extern Position RootPos; extern Color RootColor; extern Time::point SearchTime; extern StateStackPtr SetupStates;