If a PGN tag was missing (as in loading of non-PGN game collections)
the game would be marked as unfinished ('*') in the Game List, even
when it contained a result. The kif-format resign messages are now cast
in a form that also recognizes the result-detail message.
case GameIsDrawn:
case GameUnfinished:
if(!currentListGame) break;
+ if(currentListGame->gameInfo.result == GameUnfinished)
+ currentListGame->gameInfo.result = cm; // correct result tag with actual result
if (currentListGame->gameInfo.resultDetails != NULL) {
free(currentListGame->gameInfo.resultDetails);
}
int res;
parseStart = yytext;
if(wom)
- res = BlackWins, strcpy(yytext, "0-1 {resign}");
- else res = WhiteWins, strcpy(yytext, "1-0 {resign}");
+ res = BlackWins, strcpy(yytext, "{sente resigns} 0-1");
+ else res = WhiteWins, strcpy(yytext, "{gote resigns} 1-0");
return res;
} else {
while(**p && **p != '\n') (*p)++; // unrecognized Japanese kanji: skip to end of line