X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Fmakepattern.c;h=ef1a9371b5f59867aa50ce84da92e6e302a9cbe9;hb=6ec68dbedbcb4225cfe8e29e32675cb0fa486b34;hp=e24cfcda2a02f5c1a64a0e222529855e36f22bef;hpb=d43826fb9e4f50b20de90fead3bfc7c3e72b8a93;p=gnushogi.git diff --git a/gnushogi/makepattern.c b/gnushogi/makepattern.c index e24cfcd..ef1a937 100644 --- a/gnushogi/makepattern.c +++ b/gnushogi/makepattern.c @@ -4,6 +4,7 @@ * ---------------------------------------------------------------------- * Copyright (c) 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation + * Copyright (c) 2008, 2013, 2014 Yann Dirson and the Free Software Foundation * * GNU SHOGI is based on GNU CHESS * @@ -123,7 +124,7 @@ ScanPiece(char **s, small_short *side, /* determine column */ for (c = 0; c < NO_COLS; c++) { - if (**s == cxx[c]) + if (**s == COL_NAME(c)) { (*s)++; break; @@ -136,7 +137,7 @@ ScanPiece(char **s, small_short *side, /* determine row */ for (r = 0; r < NO_ROWS; r++) { - if (**s == rxx[r]) + if (**s == ROW_NAME(r)) { (*s)++; break;