From: H.G. Muller Date: Fri, 4 Oct 2013 08:24:34 +0000 (+0200) Subject: Fix SAN of promoted Chu pieces X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=2bb8f1b3835d5796314e219cd8da1bf549d48a27 Fix SAN of promoted Chu pieces --- diff --git a/moves.c b/moves.c index 9143842..dbf3924 100644 --- a/moves.c +++ b/moves.c @@ -1936,7 +1936,7 @@ CoordsToAlgebraic (Board board, int flags, int rf, int ff, int rt, int ft, int p */ if( c == '~' || c == '+') { /* [HGM] print nonexistent piece as its demoted version */ - piece = (ChessSquare) (DEMOTED piece); + piece = (ChessSquare) (DEMOTED piece - 11*(gameInfo.variant == VariantChu)); } if(c=='+') *outp++ = c; *outp++ = ToUpper(PieceToChar(piece));