From e2c435d36f8cdc85d5fa033e73414d449bb368ce Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sat, 8 Feb 2020 21:13:03 +0200 Subject: [PATCH] Fixed bug where air units in transports couldn't upgrade --- core/src/com/unciv/logic/map/TileMap.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/logic/map/TileMap.kt b/core/src/com/unciv/logic/map/TileMap.kt index f01c007687..b95396ab6c 100644 --- a/core/src/com/unciv/logic/map/TileMap.kt +++ b/core/src/com/unciv/logic/map/TileMap.kt @@ -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 }