From: H.G. Muller Date: Sun, 5 Jan 2014 15:07:30 +0000 (+0100) Subject: Start rank counting at 1 for boards deeper than 10 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=829031aa78f85ced458ab253cdae852e01c751f2;p=xboard.git Start rank counting at 1 for boards deeper than 10 Only exactly 10 ranks now starts counting at 1, to respect Xiangqi standard. --- diff --git a/common.h b/common.h index 7bfa4d7..9cb0cd9 100644 --- a/common.h +++ b/common.h @@ -142,7 +142,7 @@ typedef char *String; #define VIRGIN (BOARD_RANKS-2) /* [HGM] pieces not moved */ #define EP_STATUS CASTLING][(BOARD_FILES-2) /* [HGM] in upper rank */ #define HOLDINGS_SET CASTLING][(BOARD_FILES-1) /* [HGM] in upper-right corner*/ -#define ONE ('1'-(BOARD_HEIGHT>9)) /* [HGM] foremost board rank */ +#define ONE ('1'-(BOARD_HEIGHT==10)) /* [HGM] foremost board rank */ #define AAA ('a'-BOARD_LEFT) /* [HGM] leftmost board file */ #define VIRGIN_W 1 /* [HGM] flags in Board[VIRGIN][X] */ #define VIRGIN_B 2