Bug #1382 ยป 0024-savegame3-Sanity-check-that-FoW-tile-with-resource-i.patch
server/savegame/savegame3.c | ||
---|---|---|
struct player *plr)
|
||
{
|
||
int plrno = player_number(plr);
|
||
int total_ncities =
|
||
secfile_lookup_int_default(loading->file, -1,
|
||
int total_ncities
|
||
= secfile_lookup_int_default(loading->file, -1,
|
||
"player%d.dc_total", plrno);
|
||
int i;
|
||
bool someone_alive = FALSE;
|
||
... | ... | |
extra_type_by_cause_iterate(EC_RESOURCE, pres) {
|
||
if (BV_ISSET(plrtile->extras, extra_number(pres))) {
|
||
sg_failure_ret(plrtile->terrain != NULL,
|
||
"FoW map tile has extras, though it's on unknown.");
|
||
plrtile->resource = pres;
|
||
if (!terrain_has_resource(plrtile->terrain, pres)) {
|
||
BV_CLR(plrtile->extras, extra_number(pres));
|