From: H.G.Muller Date: Wed, 13 Jan 2016 15:07:48 +0000 (+0100) Subject: Fix setting of initial virginity on PGN read X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c4aadcf87ad4c0394d77182c819db84e2b2ba719;p=xboard.git Fix setting of initial virginity on PGN read The back-rank virginity bitmaps were not cleared in ParseFEN. --- diff --git a/backend.c b/backend.c index 3179ece..417d452 100644 --- a/backend.c +++ b/backend.c @@ -12020,7 +12020,7 @@ LoadGameOneMove (ChessMove readAhead) case BlackASideCastleFR: /* POP Fabien */ if (appData.debugMode) - fprintf(debugFP, "Parsed %s into %s\n", yy_text, currentMoveString); + fprintf(debugFP, "Parsed %s into %s virgin=%x,%x\n", yy_text, currentMoveString, boards[forwardMostMove][TOUCHED_W], boards[forwardMostMove][TOUCHED_B]); fromX = currentMoveString[0] - AAA; fromY = currentMoveString[1] - ONE; toX = currentMoveString[2] - AAA; @@ -18276,6 +18276,7 @@ ParseFEN (Board board, int *blackPlaysFirst, char *fen, Boolean autoSize) /* set defaults in case FEN is incomplete */ board[EP_STATUS] = EP_UNKNOWN; + board[TOUCHED_W] = board[TOUCHED_B] = 0; for(i=0; i