From d0daa16769256c304aaa83c3c56fa8926cf5216d Mon Sep 17 00:00:00 2001 From: Joona Kiiski Date: Tue, 26 Jan 2010 19:05:06 +0200 Subject: [PATCH] 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 --- src/search.cpp | 2 +- src/uci.cpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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(), -- 2.39.2