"Raze City" button now placed correctly when there are multiple cities

This commit is contained in:
Yair Morgenstern 2018-05-31 18:02:07 +03:00
parent f6ca98b1d7
commit 145c908af2

View file

@ -148,6 +148,7 @@ class CityScreen(internal val city: CityInfo) : CameraStageBaseScreen() {
}
cityPickerTable.row()
if (civInfo.cities.size > 1) cityPickerTable.add()
if(!city.isBeingRazed) {
val razeCityButton = TextButton("Raze city", skin)
razeCityButton.addClickListener { city.isBeingRazed=true; update() }