Bugfix
This commit is contained in:
parent
00e6eddabe
commit
194ec47ba8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue