Fixed selecting an improvement switched to another unit even if the setting is disabled (#8645)

This commit is contained in:
Gualdimar 2023-02-10 02:52:57 +02:00 committed by GitHub
parent 49615f3bd1
commit 3c22c867f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,7 @@ object UnitActions {
actionList += UnitAction(UnitActionType.ConstructImprovement,
isCurrentAction = unit.currentTile.hasImprovementInProgress(),
action = {
worldScreen.game.pushScreen(ImprovementPickerScreen(tile, unit) { worldScreen.switchToNextUnit() })
worldScreen.game.pushScreen(ImprovementPickerScreen(tile, unit) { if (UncivGame.Current.settings.autoUnitCycle) worldScreen.switchToNextUnit() })
}.takeIf { couldConstruct }
)
}