From c37ea14df528b815a9af8452449725f92261e4bb Mon Sep 17 00:00:00 2001 From: lyrjie Date: Sat, 11 Jan 2020 23:33:27 +0300 Subject: [PATCH] Defeat improvements (#1654) * Fix: civilization not being destroyed when disbanding the initial settler * Fix: destroyed unit providing visibility until the end of the turn --- core/src/com/unciv/logic/map/MapUnit.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/com/unciv/logic/map/MapUnit.kt b/core/src/com/unciv/logic/map/MapUnit.kt index 546d9ec236..2651b7301d 100644 --- a/core/src/com/unciv/logic/map/MapUnit.kt +++ b/core/src/com/unciv/logic/map/MapUnit.kt @@ -416,6 +416,7 @@ class MapUnit { fun destroy(){ removeFromTile() civInfo.removeUnit(this) + civInfo.updateViewableTiles() } fun removeFromTile(){ @@ -470,6 +471,7 @@ class MapUnit { destroy() if(currentTile.getOwner()==civInfo) civInfo.gold += baseUnit.getDisbandGold() + if (civInfo.isDefeated()) civInfo.destroy() } private fun getAncientRuinBonus(tile: TileInfo) {