From: H.G.Muller Date: Sat, 6 Feb 2016 17:18:29 +0000 (+0100) Subject: Fix using VariantMen PGN tag for both colors X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=7f227f88b2bce72c816256fb83a4971b47c861a2 Fix using VariantMen PGN tag for both colors Black pieces were not recognized as the same as white pieces. --- diff --git a/moves.c b/moves.c index 0b6b9b4..bd516de 100644 --- a/moves.c +++ b/moves.c @@ -256,7 +256,7 @@ LoadPieceDesc (char *s) if(pieceToChar[piece] != '+') { ok = FALSE; continue; } // promoted form does not exist } ASSIGN(pieceDesc[piece], p); - if(piece < BlackPawn && (pieceToChar[WHITE_TO_BLACK piece] == pieceToChar[piece] || promoted)) { + if(piece < BlackPawn && (pieceToChar[WHITE_TO_BLACK piece] == pieceToChar[piece] + 32 || promoted)) { ASSIGN(pieceDesc[WHITE_TO_BLACK piece], p); } pieceDefs = TRUE;