Only shogi-promoted piece types (with ID defined as +) will get their
inscription rendered in red.
int GetEngineLine P((char *nick, int engine));
void AddGameToBook P((int always));
void FlushBook P((void));
+char PieceToChar P((ChessSquare p));
char *StrStr P((char *string, char *match));
char *StrCaseStr P((char *string, char *match));
strncpy(buf, p, 10);
for(q=buf; (*++q & 0xC0) == 0x80;);
*q = NULLCHAR;
- DrawText(buf, x, y, (n > WhiteLion ? -2 : -1) - black);
+ DrawText(buf, x, y, (PieceToChar(n) == '+' ? -2 : -1) - black);
}
void
extern ChessSquare PromoPiece P((ChessMove moveType));
extern ChessMove PromoCharToMoveType P((int whiteOnMove, int promoChar));
-extern char PieceToChar P((ChessSquare p));
extern char PieceSuffix P((ChessSquare p));
extern ChessSquare CharToPiece P((int c));
extern int PieceToNumber P((ChessSquare p));