dynamische buildingtypes müssen erstmal bleiben, weil man die nicht in xml deifnieren kann.

This commit is contained in:
Enno Rehling 2002-03-24 10:42:21 +00:00
parent c59545c4e3
commit 89d0e42ef3
1 changed files with 2 additions and 4 deletions

View File

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