From: H.G.Muller Date: Sun, 12 Oct 2014 17:43:24 +0000 (+0200) Subject: Remember position obtained from setup X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c6375af00e374230daa2756d128da4d5668b3cc3;hp=e6fd287ffbf67a41aff2e615c6cb62555a29f5c2;p=xboard.git Remember position obtained from setup When the engine sends a setup command, it should be remembered as initialPosition, in order for the castling 'rook' test of the Betza move generator to work. --- diff --git a/backend.c b/backend.c index 8c5ac40..1c684ad 100644 --- a/backend.c +++ b/backend.c @@ -8893,6 +8893,7 @@ FakeBookMove: // [HGM] book: we jump here to simulate machine moves after book h if(startedFromSetupPosition) return; ParseFEN(boards[0], &dummy, message+s, FALSE); DrawPosition(TRUE, boards[0]); + CopyBoard(initialPosition, boards[0]); startedFromSetupPosition = TRUE; return; }