X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=score.c;h=8c5bc59fd96dcb3b7a6cd84741e2df534739e404;hp=30d30a5eb4c479124b0f83fb296bd45b92368745;hb=98d1a3e9455c7c64c4b219c9022d0e1efb187cf3;hpb=753fb1059f232f57aa567d653099e5bab2f5094c diff --git a/score.c b/score.c index 30d30a5..8c5bc59 100644 --- a/score.c +++ b/score.c @@ -25,7 +25,7 @@ #include "font.h" #include "common.h" -#include "config.h" +#include "vorconfig.h" #include "file.h" #include "globals.h" #include "score.h" @@ -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