mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-21 10:25:10 -04:00
Merge c41436e0439fccab96d578785725704c21a79e1e into d51ef24c205b6b05330b3c4d7ce79c402db44447
This commit is contained in:
commit
58d683af82
@ -65,7 +65,7 @@ object CityLocationTileRanker {
|
||||
|
||||
private fun canSettleTile(tile: Tile, civ: Civilization, nearbyCities: Sequence<City>): Boolean {
|
||||
val modConstants = civ.gameInfo.ruleset.modOptions.constants
|
||||
if (!tile.isLand || tile.isImpassible()) return false
|
||||
if (tile.isImpassible()) return false
|
||||
if (tile.getOwner() != null && tile.getOwner() != civ) return false
|
||||
for (city in nearbyCities) {
|
||||
val distance = city.getCenterTile().aerialDistanceTo(tile)
|
||||
|
Loading…
x
Reference in New Issue
Block a user