Bug #1278 ยป patch1278.diff
common/map.c | ||
---|---|---|
bool can_reclaim_ocean(const struct civ_map *nmap,
|
||
const struct tile *ptile)
|
||
{
|
||
int land_tiles = 100 - count_terrain_class_near_tile(nmap, ptile,
|
||
FALSE, TRUE,
|
||
TC_OCEAN);
|
||
int land_tiles = count_terrain_class_near_tile(nmap, ptile,
|
||
FALSE, TRUE, TC_LAND);
|
||
return land_tiles >= terrain_control.ocean_reclaim_requirement_pct;
|
||
}
|