mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 18:28:42 +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)
|
||||
}
|
||||
if(cityScreen.city.hasSoldBuildingThisTurn || sellAmount > cityScreen.city.civInfo.gold
|
||||
if (cityScreen.city.hasSoldBuildingThisTurn || cityScreen.city.isPuppet
|
||||
|| !UncivGame.Current.worldScreen.isPlayersTurn)
|
||||
sellBuildingButton.disable()
|
||||
}
|
||||
|
Reference in New Issue
Block a user