Map editor works again
This commit is contained in:
parent
1f3c1b013c
commit
d3311b3f24
1 changed files with 3 additions and 2 deletions
|
@ -133,7 +133,7 @@ open class TileGroup(var tileInfo: TileInfo, var tileSetStrings:TileSetStrings)
|
|||
|
||||
|
||||
fun getTileBaseImageLocations(viewingCiv: CivilizationInfo?): List<String>{
|
||||
if (viewingCiv==null) return listOf(tileSetStrings.hexagon)
|
||||
if (viewingCiv==null && !showEntireMap) return listOf(tileSetStrings.hexagon)
|
||||
|
||||
if (tileInfo.isCityCenter()) {
|
||||
val terrainAndCity = tileSetStrings.getCityTile(tileInfo.baseTerrain)
|
||||
|
@ -153,7 +153,8 @@ open class TileGroup(var tileInfo: TileInfo, var tileSetStrings:TileSetStrings)
|
|||
|
||||
val shouldShowImprovement = tileInfo.improvement!=null && UncivGame.Current.settings.showPixelImprovements
|
||||
val shouldShowResource = UncivGame.Current.settings.showPixelImprovements
|
||||
&& ((tileInfo.resource!=null && UncivGame.Current.viewEntireMapForDebug) || tileInfo.hasViewableResource(viewingCiv))
|
||||
&& tileInfo.resource!=null &&
|
||||
(showEntireMap || viewingCiv==null || tileInfo.hasViewableResource(viewingCiv))
|
||||
val baseTerrainTileLocation = tileSetStrings.getTile(tileInfo.baseTerrain) // e.g. Grassland
|
||||
|
||||
if (tileInfo.terrainFeature != null) {
|
||||
|
|
Loading…
Reference in a new issue