Resolved #2407 - reveal all civs when won or lost

This commit is contained in:
Yair Morgenstern 2020-04-13 23:21:19 +03:00
parent b441d537a5
commit 50f79f5a3a
2 changed files with 2 additions and 4 deletions

View File

@ -115,10 +115,7 @@ class TileMap {
}.filterNotNull()
/** Tries to place the [unitName] into the [TileInfo] closest to the given the [position]
*
* @param civInfo civilization to assign unit to
* @param removeImprovement True if the improvement of [TileInfo] unit is placed into should be deleted
*
* @return created [MapUnit] or null if no suitable location was found
* */
fun placeUnitNearTile(

View File

@ -578,7 +578,8 @@ class EmpireOverviewScreen(private val viewingPlayer:CivilizationInfo) : CameraS
civGroup.add(ImageGetter.getImage("OtherIcons/DisbandUnit")).size(30f)
backgroundColor = Color.LIGHT_GRAY
labelColor = Color.BLACK
} else if (currentPlayer==civ || UncivGame.Current.viewEntireMapForDebug || currentPlayer.knows(civ)) {
} else if (currentPlayer==civ || UncivGame.Current.viewEntireMapForDebug
|| currentPlayer.knows(civ) || currentPlayer.isDefeated() || currentPlayer.victoryManager.hasWon()) {
civGroup.add(ImageGetter.getNationIndicator(civ.nation, 30f))
backgroundColor = civ.nation.getOuterColor()
labelColor = civ.nation.getInnerColor()