mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-24 22:59:34 +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,11 +180,14 @@ class EspionageOverviewScreen(val civInfo: Civilization, val worldScreen: WorldS
|
|||||||
}
|
}
|
||||||
add(starTable).center().padLeft(-4f)
|
add(starTable).center().padLeft(-4f)
|
||||||
|
|
||||||
onClick {
|
// Spectators aren't allowed to move the spies of the Civs they are viewing
|
||||||
onSpyClicked(moveSpyButtons[spy]!!, spy)
|
if (worldScreen.canChangeState && spy.isAlive()) {
|
||||||
}
|
onClick {
|
||||||
onRightClick {
|
onSpyClicked(moveSpyButtons[spy]!!, spy)
|
||||||
onSpyRightClicked(spy)
|
}
|
||||||
|
onRightClick {
|
||||||
|
onSpyRightClicked(spy)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user