X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=book.c;fp=book.c;h=2bb542f2c981d021cd2c5536db06ab56f9f3f254;hb=4dc02ff9918e6025840c5e290458a221bb3033d4;hp=e4916154d0a48beac1e645580c5a9477c2db3c0b;hpb=5ee8e941988eabf2627f6228ae7f78fee3b685bf;p=xboard.git diff --git a/book.c b/book.c index e491615..2bb542f 100644 --- a/book.c +++ b/book.c @@ -757,7 +757,9 @@ TextToMoves (char *text, int moveNum, entry_t *entries) if(w == 1) text = strstr(text, "1 ") + 2; // skip weight that could be recognized as move number one valid = ParseOneMove(text, moveNum, &moveType, &fromX, &fromY, &toX, &toY, &promoChar); text = strstr(text, yy_textstr) + strlen(yy_textstr); // skip what we parsed - if(!valid || moveType != NormalMove) continue; + if(!valid || moveType != NormalMove && moveType != WhiteDrop && moveType != BlackDrop + && moveType != WhitePromotion && moveType != BlackPromotion + && moveType != WhiteNonPromotion && moveType != BlackNonPromotion) continue; if(*text == ' ' && sscanf(text+1, "{%hd/%hd}", &entries[count].learnPoints, &entries[count].learnCount) == 2) { text = strchr(text+1, '}') + 1; } else {