mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 23:39:40 +07:00
Resolved #8739 - cannot 'undo' if you cannot change state
This commit is contained in:
@ -119,7 +119,7 @@ class TechPolicyDiplomacyButtons(val worldScreen: WorldScreen) : Table(BaseScree
|
||||
|
||||
private fun updateUndoButton() {
|
||||
// Don't show the undo button if there is no action to undo
|
||||
if (worldScreen.gameInfo != worldScreen.preActionGameInfo) {
|
||||
if (worldScreen.gameInfo != worldScreen.preActionGameInfo && worldScreen.canChangeState) {
|
||||
undoButtonHolder.touchable = Touchable.enabled
|
||||
undoButtonHolder.actor = undoButton
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user