From: H.G. Muller Date: Mon, 20 May 2013 11:36:47 +0000 (+0200) Subject: Issue setup command in Makruk X-Git-Url: http://winboard.nl/cgi-bin?p=fairymax.git;a=commitdiff_plain;h=b6a7fa8ae7c54db7bb5a9415ccae3fd55e9b360e Issue setup command in Makruk Printing of a setup command after loading a game is now also done in Makruk, and takes into account Pawns start on 3rd rank there. --- diff --git a/data/fmax.ini b/data/fmax.ini index ab3e999..39e4d14 100644 --- a/data/fmax.ini +++ b/data/fmax.ini @@ -327,8 +327,8 @@ R:630 1,3 16,3 -1,3 -16,3 // Thai Chess. Game: makruk 8x8=3 -12 11 8 7 3 8 11 12 -12 11 9 3 7 9 11 12 +12 11 8 3 7 8 11 12 +12 11 9 7 3 9 11 12 p:100 -16,6 -15,5 -17,5 p:100 16,6 15,5 17,5 k:-1 1,7 16,7 15,7 17,7 -1,7 -16,7 -15,7 -17,7 diff --git a/fairymax.c b/fairymax.c index 28d92d6..5341cd2 100644 --- a/fairymax.c +++ b/fairymax.c @@ -522,12 +522,14 @@ void LoadGame(char *name) fclose(f); sh = w[7] < 250 ? 3 : 0; - if(name == selectedFairy) { + if(name == selectedFairy || makruk) { printf(ptc == 1 ? "setup " : "setup (%s) ", pieceToChar); // setup board in GUI for(i=0; i