From 0718fef115e9a5dcf8e60c1be2915b4ecabfff27 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 11 Oct 2010 21:40:48 +0200 Subject: [PATCH] Fix Shogi Knight-demotion bug --- lasker-2.2.3/src/gameproc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.0.4