From ba6d8610d1726cf66966893dc29b6735ef1e2c23 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 1 Nov 2010 19:23:43 +0100 Subject: [PATCH] Remove validity test on promochar from parser The backend routines Disambiguate() and LegalityTest() will catch invalid promotions, so no need to do it here. --- parser.l | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) 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; -- 1.7.0.4