Added empty hexagon when none of the images exist - this fixes the default tileset for the new rendering method

This commit is contained in:
Yair Morgenstern 2021-04-05 17:22:10 +03:00
parent 39439f72a2
commit f4da05eb05

View File

@ -371,6 +371,13 @@ open class TileGroup(var tileInfo: TileInfo, var tileSetStrings:TileSetStrings,
setHexagonImageSize(image)
image.toBack()
}
if (tileBaseImages.isEmpty()) { // Absolutely nothing! This is for the 'default' tileset
val image = ImageGetter.getImage(tileSetStrings.hexagon)
tileBaseImages.add(image)
baseLayerGroup.addActor(image)
setHexagonImageSize(image)
}
}
fun showMilitaryUnit(viewingCiv: CivilizationInfo) = showEntireMap