mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Fix Petra and Garden not allowed in some cases (#6245)
This commit is contained in:
parent
651dcff581
commit
9870003e33
@ -493,7 +493,7 @@ open class TileInfo {
|
|||||||
// Rivers are odd, as they aren't technically part of any specific tile but still count towards adjacency
|
// Rivers are odd, as they aren't technically part of any specific tile but still count towards adjacency
|
||||||
if (terrainFilter == "River") return isAdjacentToRiver()
|
if (terrainFilter == "River") return isAdjacentToRiver()
|
||||||
if (terrainFilter == Constants.freshWater && isAdjacentToRiver()) return true
|
if (terrainFilter == Constants.freshWater && isAdjacentToRiver()) return true
|
||||||
return neighbors.any { neighbor -> neighbor.matchesFilter(terrainFilter) }
|
return (neighbors + this).any { neighbor -> neighbor.matchesFilter(terrainFilter) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Without regards to what CivInfo it is, a lot of the checks are just for the improvement on the tile.
|
/** Without regards to what CivInfo it is, a lot of the checks are just for the improvement on the tile.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user