From 02e12a69a7e8fa76ee2c7dccc6218d3fda1bf156 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 be300cd9..975a2fcc 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -850,7 +850,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 1ab0aedf..da17e825 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -298,9 +298,6 @@ namespace { } } - if (moveTime) - infinite = true; // HACK - assert(RootPosition.is_ok()); return think(RootPosition, infinite, ponder, RootPosition.side_to_move(),