X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=dbf3924309f8cd3f9dbf05db00b0c71f58334cba;hb=2bb8f1b3835d5796314e219cd8da1bf549d48a27;hp=91438426425eafcdee61ecf8530a1667ddaa95bb;hpb=e9fca82919fbecd11d6d34d3d49f38be637d47cc;p=xboard.git 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));