forked from github/server
strcmp
This commit is contained in:
parent
036257d208
commit
fc611d4226
|
@ -48,11 +48,11 @@ log_read(const char * filename)
|
||||||
r = findregion(x, y);
|
r = findregion(x, y);
|
||||||
assert(r);
|
assert(r);
|
||||||
if (u->region!=r) move_unit(u, r, NULL);
|
if (u->region!=r) move_unit(u, r, NULL);
|
||||||
} else if (strcmp(buf, "REGION")) {
|
} else if (strcmp(buf, "REGION")==0) {
|
||||||
int x, y;
|
int x, y;
|
||||||
fscanf(log, "%d %d", &x, &y);
|
fscanf(log, "%d %d", &x, &y);
|
||||||
readregion(log, x, y);
|
readregion(log, x, y);
|
||||||
} else if (strcmp(buf, "FACTION")) {
|
} else if (strcmp(buf, "FACTION")==0) {
|
||||||
faction * f;
|
faction * f;
|
||||||
fscanf(log, "%s", buf);
|
fscanf(log, "%s", buf);
|
||||||
f = findfaction(atoi36(buf));
|
f = findfaction(atoi36(buf));
|
||||||
|
@ -61,7 +61,7 @@ log_read(const char * filename)
|
||||||
} else {
|
} else {
|
||||||
*fp = readfaction(log);
|
*fp = readfaction(log);
|
||||||
}
|
}
|
||||||
}
|
} else assert(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue