int whiteOnMove;\r
int promoChar;\r
{ /* [HGM] made dependent on CharToPiece to alow alternate piece letters */\r
- ChessSquare piece = CharToPiece(whiteOnMove ? ToUpper(promoChar) : ToLower(promoChar) );
+ ChessSquare piece = CharToPiece(whiteOnMove ? ToUpper(promoChar) : ToLower(promoChar) );\r
+\r
+
if(promoChar == NULLCHAR) return NormalMove;\r
\r
switch(piece) {\r
}\r
} else\r
if (promoChar != NULLCHAR && promoChar != 'x') {\r
+ if(promoChar == '=') cl.kind = IllegalMove; else // [HGM] shogi: no deferred promotion outside Shogi\r
if (cl.kind == WhitePromotionQueen || cl.kind == BlackPromotionQueen) {\r
cl.kind = \r
PromoCharToMoveType((flags & F_WHITE_ON_MOVE) != 0, promoChar);\r