When moving between units to units in cities, tiles they can move to are now shown
This commit is contained in:
parent
ea3f7f9dc0
commit
5c81bf2534
2 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
|||
package com.unciv.logic.civilization
|
||||
|
||||
import com.unciv.Constants
|
||||
import com.unciv.logic.city.CityInfo
|
||||
import com.unciv.logic.map.BFS
|
||||
import com.unciv.logic.map.RoadStatus
|
||||
import com.unciv.logic.map.TileInfo
|
||||
import kotlin.collections.set
|
||||
|
||||
|
@ -15,8 +17,8 @@ class CapitalConnectionsFinder(private val civInfo: CivilizationInfo) {
|
|||
private val theWheelIsResearched = civInfo.tech.isResearched("The Wheel")
|
||||
private val railroadIsResearched = civInfo.tech.isResearched("Railroad")
|
||||
|
||||
private val road = "Road"
|
||||
private val railroad = "Railroad"
|
||||
private val road = RoadStatus.Road.name
|
||||
private val railroad = RoadStatus.Railroad.name
|
||||
private val harbor = "Harbor"
|
||||
|
||||
init {
|
||||
|
|
|
@ -46,6 +46,7 @@ class IdleUnitButton (
|
|||
|
||||
unitToSelect.due = false
|
||||
tileMapHolder.setCenterPosition(unitToSelect.currentTile.position)
|
||||
unitTable.selectedCity = null // need to deselect city, so that units on cities show their tiles
|
||||
unitTable.selectedUnit = unitToSelect
|
||||
unitTable.worldScreen.shouldUpdate=true
|
||||
|
||||
|
|
Loading…
Reference in a new issue