Select the next unit after closing the improvement screen (#8545)

This commit is contained in:
Gualdimar 2023-02-02 17:05:30 +02:00 committed by GitHub
parent 5a267e436c
commit e113a3a140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ enum class UnitActionType(
FoundCity("Found city",
{ ImageGetter.getUnitActionPortrait("FoundCity") }, 'c', UncivSound.Silent),
ConstructImprovement("Construct improvement",
{ ImageGetter.getUnitActionPortrait("ConstructImprovement") }, 'i'),
{ ImageGetter.getUnitActionPortrait("ConstructImprovement") }, 'i', false),
Repair(Constants.repair,
{ ImageGetter.getUnitActionPortrait("Repair") }, 'r', UncivSound.Construction),
Create("Create",

View File

@ -370,7 +370,7 @@ object UnitActions {
actionList += UnitAction(UnitActionType.ConstructImprovement,
isCurrentAction = unit.currentTile.hasImprovementInProgress(),
action = {
worldScreen.game.pushScreen(ImprovementPickerScreen(tile, unit) { unitTable.selectUnit() })
worldScreen.game.pushScreen(ImprovementPickerScreen(tile, unit) { worldScreen.switchToNextUnit() })
}.takeIf { couldConstruct }
)
}