mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 22:00:24 +07:00
Clicking the spy button no longer allows the spy to be moved when it isn't their turn (#11609)
This commit is contained in:
@ -180,6 +180,8 @@ class EspionageOverviewScreen(val civInfo: Civilization, val worldScreen: WorldS
|
||||
}
|
||||
add(starTable).center().padLeft(-4f)
|
||||
|
||||
// Spectators aren't allowed to move the spies of the Civs they are viewing
|
||||
if (worldScreen.canChangeState && spy.isAlive()) {
|
||||
onClick {
|
||||
onSpyClicked(moveSpyButtons[spy]!!, spy)
|
||||
}
|
||||
@ -187,6 +189,7 @@ class EspionageOverviewScreen(val civInfo: Civilization, val worldScreen: WorldS
|
||||
onSpyRightClicked(spy)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun getSpyIcons(spies: Iterable<Spy>) = Table().apply {
|
||||
defaults().space(0f, 2f, 0f, 2f)
|
||||
|
Reference in New Issue
Block a user