Fixed bug where air units in transports couldn't upgrade

This commit is contained in:
Yair Morgenstern 2020-02-08 21:13:03 +02:00
parent 096e1c2beb
commit e2c435d36f

View File

@ -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
}