Bug #463 ยป 0050-savegame-Fix-loading-invalid-resources-on-FoW-map.patch
server/savegame/savegame3.c | ||
---|---|---|
struct player_tile *plrtile = map_get_player_tile(ptile, plr);
|
||
extra_type_by_cause_iterate(EC_RESOURCE, pres) {
|
||
if (BV_ISSET(plrtile->extras, extra_number(pres))
|
||
&& terrain_has_resource(plrtile->terrain, pres)) {
|
||
if (BV_ISSET(plrtile->extras, extra_number(pres))) {
|
||
plrtile->resource = pres;
|
||
if (!terrain_has_resource(plrtile->terrain, pres)) {
|
||
BV_CLR(plrtile->extras, extra_number(pres));
|
||
}
|
||
}
|
||
} extra_type_by_cause_iterate_end;
|
||
} whole_map_iterate_end;
|