mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 21:11:35 +07:00
Resolved #12188 - WLTK + continuous rendering no longer cause city tiles to be dimmed
This commit is contained in:
parent
affe919378
commit
d6d55c0142
@ -276,8 +276,8 @@ class CityScreen(
|
||||
tileGroup.layerMisc.addHexOutline(first.cpy().apply { this.a = second }) }
|
||||
}
|
||||
|
||||
if (fireworks == null || tileGroup.tile.position != city.location) continue
|
||||
fireworks.setActorBounds(tileGroup)
|
||||
if (fireworks != null && tileGroup.tile.position == city.location)
|
||||
fireworks.setActorBounds(tileGroup)
|
||||
}
|
||||
}
|
||||
|
||||
@ -340,7 +340,7 @@ class CityScreen(
|
||||
val tileSetStrings = TileSetStrings(city.civ.gameInfo.ruleset, game.settings)
|
||||
val cityTileGroups = city.getCenterTile().getTilesInDistance(viewRange)
|
||||
.filter { selectedCiv.hasExplored(it) }
|
||||
.map { CityTileGroup(city, it, tileSetStrings, fireworks != null) }
|
||||
.map { CityTileGroup(city, it, tileSetStrings, false) }
|
||||
|
||||
for (tileGroup in cityTileGroups) {
|
||||
tileGroup.onClick { tileGroupOnClick(tileGroup, city) }
|
||||
|
Loading…
Reference in New Issue
Block a user