mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 18:59:15 +07:00
Population is assigned/unassigned in cities by clicking on the tile, not just the population symbol
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user