Fix force mode after setboard
[bonanza.git] / iterate.c
index 1a684bc..eb09996 100644 (file)
--- a/iterate.c
+++ b/iterate.c
@@ -20,8 +20,8 @@ iterate( tree_t * restrict ptree )
   int right_answer_made;
 
   /* probe the opening book */
-  if ( pf_book != NULL
-#if defined(USI) || defined(MNJ_LAN)
+  if ( pf_book != NULL && ! analyze_mode
+#if defined(USI) || defined(MNJ_LAN) || defined(XBOARD)
        && moves_ignore[0] == MOVE_NA
 #endif
        && ! rep_book_prob( ptree ) )
@@ -210,7 +210,7 @@ iterate( tree_t * restrict ptree )
        (int)ptree->nsuc_check[0], (int)ptree->nsuc_check[1] );
 
   /* look up last pv. */
-  if ( last_pv.length )
+  if ( last_pv.length && ! analyze_mode )
     {
       Out( "- a pv was found in the previous search result.\n" );
 
@@ -223,7 +223,7 @@ iterate( tree_t * restrict ptree )
     }
 
   /* probe the transposition table, since last pv is not available.  */
-  if ( ! last_pv.length
+  if ( ! last_pv.length && ! analyze_mode
 #if defined(MPV)
        && ! root_mpv
 #endif