From 3e9bdc4b4412453619340999d96d245c7f5f8b74 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sun, 28 Sep 2014 11:18:10 +0200 Subject: [PATCH] Suppress use of promo-Gold bitmaps in Tori Shogi (WB) In Tori Shogi the Swallow Pawn does not promote to Tokin, so the use of a Gold General pictogram would only be confusing. So we stick to the regular fairy bitmaps in Tori, which is recognized by the board having 7 ranks in Shogi. --- winboard/winboard.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/winboard/winboard.c b/winboard/winboard.c index db317ce..d0eb772 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -2690,7 +2690,7 @@ InitDrawingSizes(BoardSize boardSize, int flags) pieceBitmap[1][WhiteLion] = DoLoadBitmap(hInst, "ln", squareSize, "o"); pieceBitmap[2][WhiteLion] = DoLoadBitmap(hInst, "ln", squareSize, "w"); - if(gameInfo.variant == VariantShogi) { /* promoted Gold represemtations */ + if(gameInfo.variant == VariantShogi && BOARD_HEIGHT != 7) { /* promoted Gold representations (but not in Tori!)*/ pieceBitmap[0][WhiteCannon] = DoLoadBitmap(hInst, "wp", squareSize, "s"); pieceBitmap[1][WhiteCannon] = DoLoadBitmap(hInst, "wp", squareSize, "o"); pieceBitmap[2][WhiteCannon] = DoLoadBitmap(hInst, "w", squareSize, "w"); @@ -5740,6 +5740,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) return (DefWindowProc(hwnd, message, wParam, lParam)); } + return 0; } -- 1.7.0.4