mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Resolved #4344 - can no longer enter city-screen that is not yours
This commit is contained in:
parent
194c69a633
commit
5f0afffe5a
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user