From: H.G. Muller Date: Mon, 1 Nov 2010 18:23:43 +0000 (+0100) Subject: Remove validity test on promochar from parser X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ba6d8610d1726cf66966893dc29b6735ef1e2c23;p=xboard.git Remove validity test on promochar from parser The backend routines Disambiguate() and LegalityTest() will catch invalid promotions, so no need to do it here. --- diff --git a/parser.l b/parser.l index 17d7915..6dcd13b 100644 --- a/parser.l +++ b/parser.l @@ -527,8 +527,6 @@ extern void CopyBoard P((Board to, Board from)); else c = currentMoveString[4] = ToLower(yytext[yyleng-1]); currentMoveString[5] = NULLCHAR; - if(c != '=' && c != '+' && CharToPiece(c) == EmptySquare) - return ImpossibleMove; if(c == '+' && gameInfo.variant != VariantShogi) c = currentMoveString[4] = NULLCHAR; // + means check outside Shogi } else { currentMoveString[4] = NULLCHAR;