From 1bef480ba93d56d2581f436c6ebd774eba1a143a Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 28 Dec 2011 13:35:10 +0100 Subject: [PATCH] Fix initial holdings ICS seirawan games --- backend.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index bec700a..b6a27ab 100644 --- a/backend.c +++ b/backend.c @@ -4431,6 +4431,13 @@ ParseBoard12(string) board[k][1] = board[k][BOARD_WIDTH-2] = (ChessSquare) 0;; } } + if(moveNum==0 && gameInfo.variant == VariantSChess) { + board[5][BOARD_RGHT+1] = WhiteAngel; + board[6][BOARD_RGHT+1] = WhiteMarshall; + board[1][0] = BlackMarshall; + board[2][0] = BlackAngel; + board[1][1] = board[2][1] = board[5][BOARD_RGHT] = board[6][BOARD_RGHT] = 1; + } CopyBoard(boards[moveNum], board); boards[moveNum][HOLDINGS_SET] = 0; // [HGM] indicate holdings not set if (moveNum == 0) { -- 1.7.0.4