mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 13:27:22 -04:00
Do not enter the city while performing an air strikes sequence (#7148)
This commit is contained in:
parent
ed922b182d
commit
9ffd9b817b
@ -163,9 +163,10 @@ class CityButton(val city: CityInfo, private val tileGroup: WorldTileGroup): Tab
|
||||
if (isButtonMoved) {
|
||||
val viewingCiv = worldScreen.viewingCiv
|
||||
// second tap on the button will go to the city screen
|
||||
// if this city belongs to you
|
||||
if (uncivGame.viewEntireMapForDebug || belongsToViewingCiv() || viewingCiv.isSpectator()) {
|
||||
uncivGame.setScreen(CityScreen(city))
|
||||
// if this city belongs to you and you are not iterating though the air units
|
||||
if (uncivGame.viewEntireMapForDebug || viewingCiv.isSpectator()
|
||||
|| (belongsToViewingCiv() && !tileGroup.tileInfo.airUnits.contains(unitTable.selectedUnit))) {
|
||||
uncivGame.setScreen(CityScreen(city))
|
||||
} else if (viewingCiv.knows(city.civInfo)) {
|
||||
foreignCityInfoPopup()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user