From: H.G. Muller Date: Wed, 8 Jan 2014 15:48:08 +0000 (+0100) Subject: Adapt rank counting to new XBoard standard X-Git-Tag: 0.18~7 X-Git-Url: http://winboard.nl/cgi-bin?p=hachu.git;a=commitdiff_plain;h=054bc1c2d5fd5124a0d9454669c3603190fd77f8 Adapt rank counting to new XBoard standard Since XBoard 4.8 (the first version that supports Chu Shogi) rank counting starts from 0 only for boards exactly 10 ranks deep. So Chu, Dai etc. all have to start counting at 1. --- diff --git a/hachu.c b/hachu.c index b3cd8c9..778182b 100644 --- a/hachu.c +++ b/hachu.c @@ -71,7 +71,7 @@ #define BSIZE BWMAX*BHMAX #define ZONE zone -#define ONE (currentVariant == V_SHO || currentVariant == V_CHESS || currentVariant == V_SHATRANJ || currentVariant == V_MAKRUK || currentVariant == V_LION) +#define ONE 1 /* currently no variants with 10-deep board */ #define BLACK 0 #define WHITE 1