mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 13:49:54 +07:00
Resolved #4344 - can no longer enter city-screen that is not yours
This commit is contained in:
@ -76,7 +76,8 @@ class TechAction(val techName: String = "") : NotificationAction {
|
||||
data class CityAction(val city: Vector2 = Vector2.Zero): NotificationAction {
|
||||
override fun execute(worldScreen: WorldScreen) {
|
||||
worldScreen.mapHolder.tileMap[city].getCity()?.let {
|
||||
worldScreen.game.setScreen(CityScreen(it))
|
||||
if (it.civInfo == worldScreen.viewingCiv)
|
||||
worldScreen.game.setScreen(CityScreen(it))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user