mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 23:37:31 +07:00
Fixed Great Person Picker screen not responding
This commit is contained in:
parent
1749efa50a
commit
adeac67dce
@ -427,7 +427,8 @@ class WorldScreen(
|
||||
UncivGame.Current.pushScreen(DiplomaticVoteResultScreen(gameInfo.diplomaticVictoryVotesCast, viewingCiv))
|
||||
!gameInfo.oneMoreTurnMode && (viewingCiv.isDefeated() || gameInfo.civilizations.any { it.victoryManager.hasWon() }) ->
|
||||
game.pushScreen(VictoryScreen(this))
|
||||
viewingCiv.greatPeople.freeGreatPeople > 0 -> game.pushScreen(GreatPersonPickerScreen(viewingCiv))
|
||||
viewingCiv.greatPeople.freeGreatPeople > 0 ->
|
||||
game.pushScreen(GreatPersonPickerScreen(viewingCiv))
|
||||
viewingCiv.popupAlerts.any() -> AlertPopup(this, viewingCiv.popupAlerts.first()).open()
|
||||
viewingCiv.tradeRequests.isNotEmpty() -> {
|
||||
// In the meantime this became invalid, perhaps because we accepted previous trades
|
||||
@ -789,7 +790,8 @@ class WorldScreen(
|
||||
Gdx.input.inputProcessor = null
|
||||
update()
|
||||
showTutorialsOnNextTurn()
|
||||
Gdx.input.inputProcessor = stage
|
||||
if (Gdx.input.inputProcessor == null) // Update may have replaced the worldscreen with a GreatPersonPickerScreen etc, so the input would already be set
|
||||
Gdx.input.inputProcessor = stage
|
||||
}
|
||||
// topBar.selectedCivLabel.setText(Gdx.graphics.framesPerSecond) // for framerate testing
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user