X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gamelist.c;h=11b06ac779f2441dcdbe58c1adc55d426109d53a;hb=c75d2d23ecb6a2123ccf681852e9bef8c381ce22;hp=712d9b9593cc40ac678cdc101753d6c15526fc73;hpb=e9959df8ffa2a11c47c4d385e797d2c27c0550a9;p=xboard.git diff --git a/gamelist.c b/gamelist.c index 712d9b9..11b06ac 100644 --- a/gamelist.c +++ b/gamelist.c @@ -224,13 +224,13 @@ struct { GameListFree(&gameList); yynewfile(f); gameNumber = 0; - quickFlag = 1; lastStart = (ChessMove) 0; yyskipmoves = FALSE; do { - yyboardindex = scratch + (plyNr & 1); + yyboardindex = scratch; offset = yyoffset(); + quickFlag = plyNr + 1; cm = (ChessMove) Myylex(); switch (cm) { case GNUChessGame: @@ -330,9 +330,8 @@ struct { fromY = currentMoveString[1] - ONE; toX = currentMoveString[2] - AAA; toY = currentMoveString[3] - ONE; - CopyBoard(boards[scratch + (plyNr+1&1)], boards[scratch + (plyNr&1)]); plyNr++; - ApplyMove(fromX, fromY, toX, toY, currentMoveString[4], boards[scratch + (plyNr&1)]); + ApplyMove(fromX, fromY, toX, toY, currentMoveString[4], boards[scratch]); PackMove(fromX, fromY, toX, toY, currentMoveString[4]); break; case WhiteWins: // [HGM] rescom: save last comment as result details