mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -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) {
|
if (isButtonMoved) {
|
||||||
val viewingCiv = worldScreen.viewingCiv
|
val viewingCiv = worldScreen.viewingCiv
|
||||||
// second tap on the button will go to the city screen
|
// second tap on the button will go to the city screen
|
||||||
// if this city belongs to you
|
// if this city belongs to you and you are not iterating though the air units
|
||||||
if (uncivGame.viewEntireMapForDebug || belongsToViewingCiv() || viewingCiv.isSpectator()) {
|
if (uncivGame.viewEntireMapForDebug || viewingCiv.isSpectator()
|
||||||
uncivGame.setScreen(CityScreen(city))
|
|| (belongsToViewingCiv() && !tileGroup.tileInfo.airUnits.contains(unitTable.selectedUnit))) {
|
||||||
|
uncivGame.setScreen(CityScreen(city))
|
||||||
} else if (viewingCiv.knows(city.civInfo)) {
|
} else if (viewingCiv.knows(city.civInfo)) {
|
||||||
foreignCityInfoPopup()
|
foreignCityInfoPopup()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user