Minimap hotseat fix (#8894)

This commit is contained in:
Gualdimar 2023-03-14 18:28:47 +02:00 committed by GitHub
parent a2da1ff7ee
commit 0a9814e3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -382,6 +382,8 @@ class WorldScreen(
if(uiEnabled){
displayTutorialsOnUpdate()
updateSelectedCiv()
if (fogOfWar) minimapWrapper.update(selectedCiv)
else minimapWrapper.update(viewingCiv)
@ -391,8 +393,6 @@ class WorldScreen(
bottomTileInfoTable.y = if (game.settings.showMinimap) minimapWrapper.height else 0f
battleTable.update()
updateSelectedCiv()
displayTutorialTaskOnUpdate()
unitActionsTable.update(bottomUnitTable.selectedUnit)
@ -564,7 +564,7 @@ class WorldScreen(
when {
bottomUnitTable.selectedUnit != null -> selectedCiv = bottomUnitTable.selectedUnit!!.civ
bottomUnitTable.selectedCity != null -> selectedCiv = bottomUnitTable.selectedCity!!.civ
else -> viewingCiv
else -> selectedCiv = viewingCiv
}
}