From: Joona Kiiski Date: Tue, 26 Jan 2010 17:05:06 +0000 (+0200) Subject: Remove InfiniteSearch hack X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d0daa16769256c304aaa83c3c56fa8926cf5216d Remove InfiniteSearch hack With current search control system, I can see absolutely no reason to classify fixed time search as infinite search. So remove old dated hack Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index 8c5319b2..e44dd854 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -841,7 +841,7 @@ namespace { // If we are pondering or in infinite search, we shouldn't print the // best move before we are told to do so. - if (!AbortSearch && !ExactMaxTime && (PonderSearch || InfiniteSearch)) + if (!AbortSearch && (PonderSearch || InfiniteSearch)) wait_for_stop_or_ponderhit(); else // Print final search statistics diff --git a/src/uci.cpp b/src/uci.cpp index b3a7dc63..51eb15b6 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -299,9 +299,6 @@ namespace { } } - if (moveTime) - infinite = true; // HACK - assert(RootPosition.is_ok()); return think(RootPosition, infinite, ponder, RootPosition.side_to_move(),