From: H.G. Muller Date: Wed, 30 Oct 2013 08:56:31 +0000 (+0100) Subject: Fix building without MNJ_LAN flag X-Git-Url: http://winboard.nl/cgi-bin?p=bonanza.git;a=commitdiff_plain;h=2bc73b410f9914484bd3dacb06185fc335e3e620 Fix building without MNJ_LAN flag The declaration of moves_ignore had to be enabled in XBoard mode, as well as the test for excluded moves to decide on book probing. --- diff --git a/data.c b/data.c index 5941400..267f18e 100644 --- a/data.c +++ b/data.c @@ -223,7 +223,7 @@ char client_str_pwd[256]; sckt_t sckt_csa; #endif -#if defined(MNJ_LAN) || defined(USI) +#if defined(MNJ_LAN) || defined(USI) || defined(XBOARD) unsigned int moves_ignore[MAX_LEGAL_MOVES]; #endif diff --git a/iterate.c b/iterate.c index cd07dd6..eb09996 100644 --- a/iterate.c +++ b/iterate.c @@ -21,7 +21,7 @@ iterate( tree_t * restrict ptree ) /* probe the opening book */ if ( pf_book != NULL && ! analyze_mode -#if defined(USI) || defined(MNJ_LAN) +#if defined(USI) || defined(MNJ_LAN) || defined(XBOARD) && moves_ignore[0] == MOVE_NA #endif && ! rep_book_prob( ptree ) ) diff --git a/shogi.h b/shogi.h index ecc1ed1..8c55744 100644 --- a/shogi.h +++ b/shogi.h @@ -1274,7 +1274,7 @@ extern char client_str_pwd[256]; extern sckt_t sckt_csa; #endif -#if defined(MNJ_LAN) || defined(USI) +#if defined(MNJ_LAN) || defined(USI) || defined(XBOARD) extern unsigned int moves_ignore[MAX_LEGAL_MOVES]; #endif