forked from github/server
dynamische buildingtypes müssen erstmal bleiben, weil man die nicht in xml deifnieren kann.
This commit is contained in:
parent
c59545c4e3
commit
89d0e42ef3
|
@ -661,8 +661,6 @@ read_dynamictypes(void)
|
||||||
while (!feof(F)) {
|
while (!feof(F)) {
|
||||||
fscanf(F, "%s", buf);
|
fscanf(F, "%s", buf);
|
||||||
if (!strcmp("BUILDINGTYPE", buf)) bt_read(F);
|
if (!strcmp("BUILDINGTYPE", buf)) bt_read(F);
|
||||||
else if (!strcmp("RESOURCETYPE", buf)) rt_read(F);
|
|
||||||
else if (!strcmp("ITEMTYPE", buf)) it_read(F);
|
|
||||||
}
|
}
|
||||||
fclose(F);
|
fclose(F);
|
||||||
}
|
}
|
||||||
|
@ -814,7 +812,7 @@ readgame(boolean backup)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
turn = ri(F);
|
turn = ri(F);
|
||||||
/* read_dynamictypes(); */
|
read_dynamictypes();
|
||||||
if (global.data_version < NEWMAGIC) {
|
if (global.data_version < NEWMAGIC) {
|
||||||
max_unique_id = 0;
|
max_unique_id = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1260,7 +1258,7 @@ writegame(char *path, char quiet)
|
||||||
sprintf(buf, "%s/%d.players", datapath(), turn);
|
sprintf(buf, "%s/%d.players", datapath(), turn);
|
||||||
export_players(playerfile);
|
export_players(playerfile);
|
||||||
#endif
|
#endif
|
||||||
/* write_dynamictypes(); */
|
write_dynamictypes();
|
||||||
|
|
||||||
F = cfopen(path, "w");
|
F = cfopen(path, "w");
|
||||||
if (F==NULL)
|
if (F==NULL)
|
||||||
|
|
Loading…
Reference in New Issue