Merge pull request #302 from ninjatao/fix_acquire
Fix : can acquire tiles that already belong to the city.
This commit is contained in:
commit
bb78673edc
1 changed files with 2 additions and 1 deletions
|
@ -240,7 +240,8 @@ class CityScreen(internal val city: CityInfo) : CameraStageBaseScreen() {
|
|||
if(goldCostOfTile>city.civInfo.gold) buyTileButton.disable()
|
||||
tileTable.add(buyTileButton)
|
||||
}
|
||||
if(tile.getOwner()!=null && tile.getOwner()!!.isPlayerCivilization()
|
||||
if(tile.getOwner()!=null && tile.getCity()!=city
|
||||
&& tile.getOwner()!!.isPlayerCivilization()
|
||||
&& tile.arialDistanceTo(city.getCenterTile()) <= 3
|
||||
&& tile.neighbors.any{it.getCity()==city}){
|
||||
val acquireTileButton = TextButton("Acquire".tr(),skin)
|
||||
|
|
Loading…
Reference in a new issue