diff --git a/core/src/com/unciv/ui/tilegroups/CityButton.kt b/core/src/com/unciv/ui/tilegroups/CityButton.kt index febcb473fc..da8b4f0d07 100644 --- a/core/src/com/unciv/ui/tilegroups/CityButton.kt +++ b/core/src/com/unciv/ui/tilegroups/CityButton.kt @@ -70,13 +70,14 @@ class CityButton(val city: CityInfo, internal val tileGroup: WorldTileGroup, ski // clicking swings the button a little down to allow selection of units there. // this also allows to target selected units to move to the city tile from elsewhere. if (isButtonMoved) { + val viewingCiv = UncivGame.Current.worldScreen.viewingCiv // second tap on the button will go to the city screen // if this city belongs to you if (UncivGame.Current.viewEntireMapForDebug || belongsToViewingCiv()) { UncivGame.Current.setScreen(CityScreen(city)) - } else { + } else if (viewingCiv.knows(city.civInfo)) { // If city doesn't belong to you, go directly to its owner's diplomacy screen. - val screen = DiplomacyScreen(UncivGame.Current.worldScreen.viewingCiv) + val screen = DiplomacyScreen(viewingCiv) screen.updateRightSide(city.civInfo) UncivGame.Current.setScreen(screen) }