mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-18 03:38:55 +07:00
When moving between units to units in cities, tiles they can move to are now shown
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user