X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=702f0f31eafb8f7d751552078bf12b18a889e6f9;hp=9f131d46d512d0ba6e4494ec81db724bd7698524;hb=cabd512916f1121a254c367a9fbba7978a57b5ae;hpb=40c863d41af5058a02f1de3423a000d801dcb08a diff --git a/src/timeman.cpp b/src/timeman.cpp index 9f131d46..702f0f31 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -92,7 +92,7 @@ void TimeManager::init(const Search::LimitsType& limits, int currentPly, Color u // Initialize all to maximum values but unstablePVExtraTime that is reset unstablePVExtraTime = 0; - optimumSearchTime = maximumSearchTime = limits.time[us]; + optimumSearchTime = maximumSearchTime = std::max(limits.time[us], minThinkingTime); // We calculate optimum time usage for different hypothetical "moves to go"-values and choose the // minimum of calculated search time values. Usually the greatest hypMTG gives the minimum values.