forked from github/server
doh. versionschaos gemacht mit datenfiles.
This commit is contained in:
parent
8a70c02ee5
commit
0360038fc7
|
@ -1578,11 +1578,9 @@ readfaction(FILE * F)
|
||||||
freset(f, FFL_OVERRIDE);
|
freset(f, FFL_OVERRIDE);
|
||||||
|
|
||||||
a_read(F, &f->attribs);
|
a_read(F, &f->attribs);
|
||||||
#if RELEASE_VERSION>=CLAIM_VERSION
|
|
||||||
if (global.data_version>=CLAIM_VERSION) {
|
if (global.data_version>=CLAIM_VERSION) {
|
||||||
read_items(F, &f->items);
|
read_items(F, &f->items);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#ifdef MSG_LEVELS
|
#ifdef MSG_LEVELS
|
||||||
read_msglevels(&f->warnings, F);
|
read_msglevels(&f->warnings, F);
|
||||||
#else
|
#else
|
||||||
|
@ -1675,10 +1673,10 @@ writefaction(FILE * F, const faction * f)
|
||||||
wi(F, f->flags);
|
wi(F, f->flags);
|
||||||
a_write(F, f->attribs);
|
a_write(F, f->attribs);
|
||||||
wnl(F);
|
wnl(F);
|
||||||
if (global.data_version>=CLAIM_VERSION) {
|
#if RELEASE_VERSION>=CLAIM_VERSION
|
||||||
write_items(F, f->items);
|
write_items(F, f->items);
|
||||||
wnl(F);
|
wnl(F);
|
||||||
}
|
#endif
|
||||||
#ifdef MSG_LEVELS
|
#ifdef MSG_LEVELS
|
||||||
write_msglevels(f->warnings, F);
|
write_msglevels(f->warnings, F);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue