mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 22:58:50 +07:00
When multiple policies can be picked, don't exit the policy picker screen
This commit is contained in:
@ -33,13 +33,11 @@ class PolicyPickerScreen(internal val civInfo: CivilizationInfo) : PickerScreen(
|
||||
civInfo.policies.adopt(pickedPolicy!!)
|
||||
|
||||
// If we've moved to another screen in the meantime (great person pick, victory screen) ignore this
|
||||
if(game.screen is PolicyPickerScreen){
|
||||
// update policies
|
||||
// game.screen = PolicyPickerScreen(civInfo)
|
||||
if(game.screen !is PolicyPickerScreen || !policies.canAdoptPolicy()){
|
||||
game.setWorldScreen()
|
||||
dispose()
|
||||
}
|
||||
|
||||
else game.screen = PolicyPickerScreen(civInfo) // update policies
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user