mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 21:35:14 -04:00
Scroll WorldScreen immediately to the city when exiting it (#7195)
This commit is contained in:
parent
488f12be9c
commit
06198f2e2c
@ -398,7 +398,7 @@ class CityScreen(
|
||||
fun exit() {
|
||||
val newScreen = game.popScreen()
|
||||
if (newScreen is WorldScreen) {
|
||||
newScreen.mapHolder.setCenterPosition(city.location)
|
||||
newScreen.mapHolder.setCenterPosition(city.location, immediately = true)
|
||||
newScreen.bottomUnitTable.selectUnit()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user