mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -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() {
|
fun exit() {
|
||||||
val newScreen = game.popScreen()
|
val newScreen = game.popScreen()
|
||||||
if (newScreen is WorldScreen) {
|
if (newScreen is WorldScreen) {
|
||||||
newScreen.mapHolder.setCenterPosition(city.location)
|
newScreen.mapHolder.setCenterPosition(city.location, immediately = true)
|
||||||
newScreen.bottomUnitTable.selectUnit()
|
newScreen.bottomUnitTable.selectUnit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user