forked from github/server
blödsinn beim einlesen der watchers
This commit is contained in:
parent
7ff3d54ba5
commit
605aaf51e6
|
@ -849,17 +849,15 @@ readgame(boolean backup)
|
||||||
pl->maxy = ri(F);
|
pl->maxy = ri(F);
|
||||||
pl->flags = ri(F);
|
pl->flags = ri(F);
|
||||||
if (global.data_version>WATCHERS_VERSION) {
|
if (global.data_version>WATCHERS_VERSION) {
|
||||||
char * s = NULL;
|
rs(F, buf);
|
||||||
rds(F, &s);
|
while (strcmp(buf, "end")!=0) {
|
||||||
while (strcmp(s, "end")!=0) {
|
|
||||||
watcher * w = calloc(sizeof(watcher),1);
|
watcher * w = calloc(sizeof(watcher),1);
|
||||||
int fno = ri36(F);
|
int fno = atoi36(buf);
|
||||||
w->mode = (unsigned char)ri(F);
|
w->mode = (unsigned char)ri(F);
|
||||||
w->next = pl->watchers;
|
w->next = pl->watchers;
|
||||||
pl->watchers = w;
|
pl->watchers = w;
|
||||||
ur_add((void*)fno, (void**)&w->faction, resolve_faction);
|
ur_add((void*)fno, (void**)&w->faction, resolve_faction);
|
||||||
}
|
}
|
||||||
free(s);
|
|
||||||
}
|
}
|
||||||
a_read(F, &pl->attribs);
|
a_read(F, &pl->attribs);
|
||||||
addlist(&planes, pl);
|
addlist(&planes, pl);
|
||||||
|
|
Loading…
Reference in New Issue