Hide crosshair while city can't attack (#2124)
This commit is contained in:
parent
97a9a0f08c
commit
e370bbc53b
1 changed files with 2 additions and 0 deletions
|
@ -291,6 +291,8 @@ class WorldMapHolder(internal val worldScreen: WorldScreen, internal val tileMap
|
|||
}
|
||||
|
||||
private fun updateTilegroupsForSelectedCity(city: CityInfo, playerViewableTilePositions: HashSet<Vector2>) {
|
||||
if (city.attackedThisTurn) return
|
||||
|
||||
val attackableTiles = UnitAutomation().getBombardTargets(city)
|
||||
.filter { (UncivGame.Current.viewEntireMapForDebug || playerViewableTilePositions.contains(it.position)) }
|
||||
for (attackableTile in attackableTiles) {
|
||||
|
|
Loading…
Reference in a new issue