From c828b575770268bcff04800ae189a5951d887d99 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sat, 25 Aug 2018 23:49:12 +0300 Subject: [PATCH] TileMapHolder doesn't update using clone because it causes problems when updating the tiles --- core/src/com/unciv/ui/worldscreen/WorldScreen.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/WorldScreen.kt b/core/src/com/unciv/ui/worldscreen/WorldScreen.kt index c4062cc8df..d36ed36b94 100644 --- a/core/src/com/unciv/ui/worldscreen/WorldScreen.kt +++ b/core/src/com/unciv/ui/worldscreen/WorldScreen.kt @@ -122,7 +122,11 @@ class WorldScreen : CameraStageBaseScreen() { unitActionsTable.update(bottomBar.unitTable.selectedUnit) unitActionsTable.y = bottomBar.height - tileMapHolder.updateTiles(cloneCivilization) + // if we use the clone, then when we update viewable tiles + // it doesn't update the explored tiles of the civ... need to think about that harder + // it causes a bug when we move a unit to an unexplored tile (for instance cavalry unit which can move far) + tileMapHolder.updateTiles(civInfo) + topBar.update(cloneCivilization) notificationsScroll.update(gameClone.notifications) notificationsScroll.width = stage.width/3