mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Color city centers differently on max zoom out, like in minimap
This commit is contained in:
parent
d9c008206a
commit
785fc6d148
@ -909,9 +909,13 @@ class WorldMapHolder(
|
|||||||
|
|
||||||
if (scaleX == minZoom)
|
if (scaleX == minZoom)
|
||||||
for (tileGroup in tileGroups.values){
|
for (tileGroup in tileGroups.values){
|
||||||
if (!worldScreen.viewingCiv.hasExplored(tileGroup.tile)) continue
|
val tile = tileGroup.tile
|
||||||
val owner = tileGroup.tile.getOwner()
|
if (!worldScreen.viewingCiv.hasExplored(tile)) continue
|
||||||
if (owner != null) tileGroup.layerMisc.overlayTerrain(owner.nation.getOuterColor(), 0.7f)
|
val owner = tile.getOwner()
|
||||||
|
if (owner != null){
|
||||||
|
val color = if (tile.isCityCenter()) owner.nation.getInnerColor() else owner.nation.getOuterColor()
|
||||||
|
tileGroup.layerMisc.overlayTerrain(color, 0.7f)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for (tileGroup in tileGroups.values)
|
for (tileGroup in tileGroups.values)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user