From 2bc73b410f9914484bd3dacb06185fc335e3e620 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 30 Oct 2013 09:56:31 +0100 Subject: [PATCH] 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. --- data.c | 2 +- iterate.c | 2 +- shogi.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 1.7.0.4