From c6375af00e374230daa2756d128da4d5668b3cc3 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sun, 12 Oct 2014 19:43:24 +0200 Subject: [PATCH] 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. --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; } -- 1.7.0.4