This commit is contained in:
Enno Rehling 2002-03-03 15:52:54 +00:00
parent 036257d208
commit fc611d4226
1 changed files with 3 additions and 3 deletions

View File

@ -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);
} }
} }