From: H.G. Muller Date: Mon, 11 Oct 2010 19:40:48 +0000 (+0200) Subject: Fix Shogi Knight-demotion bug X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0718fef115e9a5dcf8e60c1be2915b4ecabfff27;p=capablanca.git Fix Shogi Knight-demotion bug --- diff --git a/lasker-2.2.3/src/gameproc.c b/lasker-2.2.3/src/gameproc.c index ec6918c..8398499 100644 --- a/lasker-2.2.3/src/gameproc.c +++ b/lasker-2.2.3/src/gameproc.c @@ -416,7 +416,7 @@ static int was_promoted(struct game *g, int f, int r) if (g->moveList[i].piecePromotionTo) { switch(g->moveList[i].moveString[0]) { // [HGM] return original piece type rather than just TRUE case 'P': return PAWN; - case 'N': return KNIGHT; + case 'N': return HONORABLEHORSE; // !!! this is Shogi, so no KNIGHT !!! case 'B': return BISHOP; case 'R': return ROOK; case 'L': return LANCE;