forked from github/server
- Minifix readregion
This commit is contained in:
parent
21920015a3
commit
135d3ac079
|
@ -38,7 +38,7 @@ log_read(const char * filename)
|
||||||
while (*fp) fp=&(*fp)->next;
|
while (*fp) fp=&(*fp)->next;
|
||||||
fscanf(log, "LOGVERSION %d\n", &global.data_version);
|
fscanf(log, "LOGVERSION %d\n", &global.data_version);
|
||||||
while (!feof(log)) {
|
while (!feof(log)) {
|
||||||
fscanf(log, "%s", buf);
|
if(fscanf(log, "%s", buf) == EOF) break;
|
||||||
if (strcmp(buf, "UNIT")==0) {
|
if (strcmp(buf, "UNIT")==0) {
|
||||||
int x, y;
|
int x, y;
|
||||||
unit * u;
|
unit * u;
|
||||||
|
|
Loading…
Reference in New Issue