X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=score.c;fp=score.c;h=8c5bc59fd96dcb3b7a6cd84741e2df534739e404;hp=86486793d50a4ec83bedb0459fea3de84cf46a46;hb=98d1a3e9455c7c64c4b219c9022d0e1efb187cf3;hpb=58c8abeeaed3bf55b7ac7451776e7100dbdad969 diff --git a/score.c b/score.c index 8648679..8c5bc59 100644 --- a/score.c +++ b/score.c @@ -64,15 +64,21 @@ void read_high_score_table() { FILE *f; - int i, j; + int i, j, ret; f = open_score_file("r"); if(f) { // If the file exists, read from it for(j=0; j<2; j++) { - fscanf(f, titles[j]); + ret = fseek(f, strlen(titles[j]), SEEK_CUR); + if (ret != 0) { + break; + } for(i = 0; i