X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=dbf3924309f8cd3f9dbf05db00b0c71f58334cba;hb=bd85ed7a2aac57e6afa8fdab7f3a13ce22910b18;hp=91438426425eafcdee61ecf8530a1667ddaa95bb;hpb=9b57df9ec247e8a2b70640bc6d3787f9c7204595;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));