Population is assigned/unassigned in cities by clicking on the tile, not just the population symbol

This commit is contained in:
Yair Morgenstern
2018-11-06 22:49:40 +02:00
parent a062b02bb5
commit a7694867d0
6 changed files with 369 additions and 387 deletions

View File

@ -204,7 +204,7 @@ class CityScreen(internal val city: CityInfo) : CameraStageBaseScreen() {
}
else if (!tileInfo.isCityCenter() && tileGroup.populationImage==null) { // workable
tileGroup.addPopulationIcon()
tileGroup.populationImage!!.onClick {
tileGroup.onClick {
if (!tileInfo.isWorked() && city.population.getFreePopulation() > 0)
city.workedTiles.add(tileInfo.position)
else if (tileInfo.isWorked()) city.workedTiles.remove(tileInfo.position)