When multiple policies can be picked, don't exit the policy picker screen

This commit is contained in:
Yair Morgenstern
2019-08-04 23:15:46 +03:00
parent 9a48133e1b
commit 5c02281023

View File

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