mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-20 04:38:18 +07:00
Fix: "Sell the building" button being randomly disabled (#1611)
* Fix: "Sell the building" button being randomly disabled based on the sell price * Fix: `sellBuildingButton` being enabled in puppet cities Co-authored-by: dumichno <57294813+dumichno@users.noreply.github.com>
This commit is contained in:
@ -83,7 +83,7 @@ class CityInfoTable(private val cityScreen: CityScreen) : Table(CameraStageBaseS
|
|||||||
cityScreen.update()
|
cityScreen.update()
|
||||||
}, cityScreen)
|
}, cityScreen)
|
||||||
}
|
}
|
||||||
if(cityScreen.city.hasSoldBuildingThisTurn || sellAmount > cityScreen.city.civInfo.gold
|
if (cityScreen.city.hasSoldBuildingThisTurn || cityScreen.city.isPuppet
|
||||||
|| !UncivGame.Current.worldScreen.isPlayersTurn)
|
|| !UncivGame.Current.worldScreen.isPlayersTurn)
|
||||||
sellBuildingButton.disable()
|
sellBuildingButton.disable()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user