From 7c6f1f89aa5e21460c61dcc875ebc4cc3916455e Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 10 Oct 2010 21:23:09 +0200 Subject: [PATCH] Fix WinBoard Lance bug The choice between Lance and Queen was made on appData.variant, in stead of gameInfo.variant. Because of this it was not always up-to-date in ICS games. --- winboard/winboard.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/winboard/winboard.c b/winboard/winboard.c index 84f38fb..e92a265 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -2459,7 +2459,7 @@ InitDrawingSizes(BoardSize boardSize, int flags) pieceBitmap[2][WhiteBishop] = DoLoadBitmap(hInst, "b", squareSize, "w"); pieceBitmap[2][WhiteRook] = DoLoadBitmap(hInst, "r", squareSize, "w"); pieceBitmap[2][WhiteKing] = DoLoadBitmap(hInst, "k", squareSize, "w"); - if( !strcmp(appData.variant, "shogi") && (squareSize==72 || squareSize==49)) { + if( gameInfo.variant == VariantShogi && (squareSize==72 || squareSize==49)) { // in Shogi, Hijack the unused Queen for Lance pieceBitmap[0][WhiteQueen] = DoLoadBitmap(hInst, "l", squareSize, "s"); pieceBitmap[1][WhiteQueen] = DoLoadBitmap(hInst, "l", squareSize, "o"); -- 1.7.0.4