This commit is contained in:
Racoonicorn 2017-01-04 00:02:06 +01:00 committed by GitHub
parent 00e6eddabe
commit 194ec47ba8
1 changed files with 2 additions and 2 deletions

View File

@ -102,11 +102,11 @@ void readfiles() {
selected.level = data[i-1].level + 1; selected.level = data[i-1].level + 1;
// read f_info // read f_info
lines = 0; lines = 0;
do { // read from line 4 do { // read from line 5
ch = fgetc(f_info); ch = fgetc(f_info);
if (ch == '\n') if (ch == '\n')
lines++;; lines++;;
} while (lines < 4); } while (lines < 5);
do { do {
fscanf(f_info, "%d.%d %s %dx%d", &level[u].world, &level[u].num, level[u].name, &level[u].height, &level[u].width); fscanf(f_info, "%d.%d %s %dx%d", &level[u].world, &level[u].num, level[u].name, &level[u].height, &level[u].width);