From 50f79f5a3aa6daa9b3bb3fbc4fa23bd8a80c0bd9 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 13 Apr 2020 23:21:19 +0300 Subject: [PATCH] Resolved #2407 - reveal all civs when won or lost --- core/src/com/unciv/logic/map/TileMap.kt | 3 --- core/src/com/unciv/ui/EmpireOverviewScreen.kt | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/com/unciv/logic/map/TileMap.kt b/core/src/com/unciv/logic/map/TileMap.kt index a2c6fcec99..6c52e9fff5 100644 --- a/core/src/com/unciv/logic/map/TileMap.kt +++ b/core/src/com/unciv/logic/map/TileMap.kt @@ -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( diff --git a/core/src/com/unciv/ui/EmpireOverviewScreen.kt b/core/src/com/unciv/ui/EmpireOverviewScreen.kt index 5c8df567c0..962d356887 100644 --- a/core/src/com/unciv/ui/EmpireOverviewScreen.kt +++ b/core/src/com/unciv/ui/EmpireOverviewScreen.kt @@ -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()