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