X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=book.c;h=ec3f543809e04e0ff5a53fd469016cd531b5635f;hb=ff35ac10e995043ddbc05154f185784b9918d48b;hp=2bb542f2c981d021cd2c5536db06ab56f9f3f254;hpb=4dc02ff9918e6025840c5e290458a221bb3033d4;p=xboard.git diff --git a/book.c b/book.c index 2bb542f..ec3f543 100644 --- a/book.c +++ b/book.c @@ -759,6 +759,9 @@ TextToMoves (char *text, int moveNum, entry_t *entries) text = strstr(text, yy_textstr) + strlen(yy_textstr); // skip what we parsed if(!valid || moveType != NormalMove && moveType != WhiteDrop && moveType != BlackDrop && moveType != WhitePromotion && moveType != BlackPromotion + && moveType != WhiteCapturesEnPassant && moveType != BlackCapturesEnPassant + && moveType != WhiteKingSideCastle && moveType != BlackKingSideCastle + && moveType != WhiteQueenSideCastle && moveType != BlackQueenSideCastle && moveType != WhiteNonPromotion && moveType != BlackNonPromotion) continue; if(*text == ' ' && sscanf(text+1, "{%hd/%hd}", &entries[count].learnPoints, &entries[count].learnCount) == 2) { text = strchr(text+1, '}') + 1;