Disable book during analysis
authorMarco Costalba <mcostalba@gmail.com>
Mon, 9 Apr 2012 07:09:02 +0000 (08:09 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 9 Apr 2012 07:09:02 +0000 (08:09 +0100)
It is still enabled during fixed limit search so to
use it during fixed depth/nodes/time matches.

Bug reported by Daylen.

No functional changes.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index 7349e96b48d9c2f93372eeabe9ad2c56bc9095cb..1d06dbd05748d75073647c544a603171e1b5a89b 100644 (file)
@@ -265,7 +265,7 @@ void Search::think() {
       goto finalize;
   }
 
-  if (Options["OwnBook"])
+  if (Options["OwnBook"] && !Limits.infinite)
   {
       Move bookMove = book.probe(pos, Options["Book File"], Options["Best Book Move"]);