Scroll WorldScreen immediately to the city when exiting it (#7195)

This commit is contained in:
Timo T 2022-06-18 21:39:06 +02:00 committed by GitHub
parent 488f12be9c
commit 06198f2e2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
} }
} }