mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
TileMapHolder doesn't update using clone because it causes problems when updating the tiles
This commit is contained in:
parent
86464ccdb0
commit
c828b57577
@ -122,7 +122,11 @@ class WorldScreen : CameraStageBaseScreen() {
|
|||||||
unitActionsTable.update(bottomBar.unitTable.selectedUnit)
|
unitActionsTable.update(bottomBar.unitTable.selectedUnit)
|
||||||
unitActionsTable.y = bottomBar.height
|
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)
|
topBar.update(cloneCivilization)
|
||||||
notificationsScroll.update(gameClone.notifications)
|
notificationsScroll.update(gameClone.notifications)
|
||||||
notificationsScroll.width = stage.width/3
|
notificationsScroll.width = stage.width/3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user