mirror of
https://gitlab.com/manzerbredes/chess-move-interface.git
synced 2025-05-01 09:27:44 +00:00
Debug and update readme
This commit is contained in:
parent
2ec4942cc0
commit
0258e7d4f8
2 changed files with 43 additions and 6 deletions
13
src/PGN.cpp
13
src/PGN.cpp
|
@ -59,6 +59,10 @@ void PGN::ParseNextGame() {
|
|||
} else if (IS_DIGIT(c)) {
|
||||
LastGameEndLoc = ParseHalfMove(loc, moves);
|
||||
break;
|
||||
} else if (c == '*') {
|
||||
result = "*";
|
||||
LastGameEndLoc=loc+1;
|
||||
break;
|
||||
} else if (c == '{') {
|
||||
loc = ParseComment(loc, moves);
|
||||
continue; // No need loc++
|
||||
|
@ -330,11 +334,10 @@ loctype PGN::GotoNextToken(loctype loc) {
|
|||
c = pgn_content[loc];
|
||||
if (c == '%' || c == ';') {
|
||||
loc = GotoEOL(loc);
|
||||
if(!IS_EOF){
|
||||
c=pgn_content[loc];
|
||||
}
|
||||
else{
|
||||
return(loc);
|
||||
if (!IS_EOF) {
|
||||
c = pgn_content[loc];
|
||||
} else {
|
||||
return (loc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue