From 2bb8f1b3835d5796314e219cd8da1bf549d48a27 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 4 Oct 2013 10:24:34 +0200 Subject: [PATCH] Fix SAN of promoted Chu pieces --- moves.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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)); -- 1.7.0.4