From 2af847b3a6cfa33a99444e33477b11c875c35e4c Mon Sep 17 00:00:00 2001 From: lyrjie Date: Sat, 4 Jan 2020 22:01:06 +0300 Subject: [PATCH] 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> --- core/src/com/unciv/ui/cityscreen/CityInfoTable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt b/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt index d75b6ff0e4..af260f9f7c 100644 --- a/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt +++ b/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt @@ -83,7 +83,7 @@ class CityInfoTable(private val cityScreen: CityScreen) : Table(CameraStageBaseS cityScreen.update() }, cityScreen) } - if(cityScreen.city.hasSoldBuildingThisTurn || sellAmount > cityScreen.city.civInfo.gold + if (cityScreen.city.hasSoldBuildingThisTurn || cityScreen.city.isPuppet || !UncivGame.Current.worldScreen.isPlayersTurn) sellBuildingButton.disable() }