X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gamelist.c;h=a36af7ad0db9cd883556f872e0597838747142fa;hb=09d925e8732793829e2a2a2abe582a46343e3fd2;hp=4e57cb34bee4fc65eaf1338644e2899050956b19;hpb=ca63c52d91e298f2b7d70535b8e5a923e4f956ac;p=xboard.git diff --git a/gamelist.c b/gamelist.c index 4e57cb3..a36af7a 100644 --- a/gamelist.c +++ b/gamelist.c @@ -214,7 +214,7 @@ int GameListBuild(f) ListGame *currentListGame = NULL; int error; int offset; - char lastComment[MSG_SIZ]; + char lastComment[MSG_SIZ], buf[MSG_SIZ]; GameListFree(&gameList); yynewfile(f); @@ -304,6 +304,7 @@ int GameListBuild(f) case BlackWins: case GameIsDrawn: case GameUnfinished: + if(!currentListGame) break; if (currentListGame->gameInfo.resultDetails != NULL) { free(currentListGame->gameInfo.resultDetails); } @@ -316,10 +317,13 @@ int GameListBuild(f) default: break; } + if(gameNumber % 1000 == 0) { + snprintf(buf, MSG_SIZ,"Reading game file (%d)", gameNumber); + DisplayTitle(buf); + } } while (cm != (ChessMove) 0); - if (appData.debugMode) { for (currentListGame = (ListGame *) gameList.head; currentListGame->node.succ; @@ -331,6 +335,7 @@ int GameListBuild(f) } } + DisplayTitle("WinBoard"); rewind(f); yyskipmoves = FALSE; return 0;