mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-31 18:04:55 +07:00
Fixed bug where air units in transports couldn't upgrade
This commit is contained in:
parent
096e1c2beb
commit
e2c435d36f
@ -135,6 +135,7 @@ class TileMap {
|
||||
val unit = gameInfo.ruleSet.units[unitName]!!.getMapUnit(gameInfo.ruleSet)
|
||||
|
||||
fun isTileMovePotential(tileInfo:TileInfo): Boolean {
|
||||
if(unit.type.isAirUnit()) return true
|
||||
if(unit.type.isWaterUnit()) return tileInfo.isWater || tileInfo.isCityCenter()
|
||||
else return tileInfo.isLand
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user