mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04:00
Minimap hotseat fix (#8894)
This commit is contained in:
parent
a2da1ff7ee
commit
0a9814e3b8
@ -382,6 +382,8 @@ class WorldScreen(
|
|||||||
if(uiEnabled){
|
if(uiEnabled){
|
||||||
displayTutorialsOnUpdate()
|
displayTutorialsOnUpdate()
|
||||||
|
|
||||||
|
updateSelectedCiv()
|
||||||
|
|
||||||
if (fogOfWar) minimapWrapper.update(selectedCiv)
|
if (fogOfWar) minimapWrapper.update(selectedCiv)
|
||||||
else minimapWrapper.update(viewingCiv)
|
else minimapWrapper.update(viewingCiv)
|
||||||
|
|
||||||
@ -391,8 +393,6 @@ class WorldScreen(
|
|||||||
bottomTileInfoTable.y = if (game.settings.showMinimap) minimapWrapper.height else 0f
|
bottomTileInfoTable.y = if (game.settings.showMinimap) minimapWrapper.height else 0f
|
||||||
battleTable.update()
|
battleTable.update()
|
||||||
|
|
||||||
updateSelectedCiv()
|
|
||||||
|
|
||||||
displayTutorialTaskOnUpdate()
|
displayTutorialTaskOnUpdate()
|
||||||
|
|
||||||
unitActionsTable.update(bottomUnitTable.selectedUnit)
|
unitActionsTable.update(bottomUnitTable.selectedUnit)
|
||||||
@ -564,7 +564,7 @@ class WorldScreen(
|
|||||||
when {
|
when {
|
||||||
bottomUnitTable.selectedUnit != null -> selectedCiv = bottomUnitTable.selectedUnit!!.civ
|
bottomUnitTable.selectedUnit != null -> selectedCiv = bottomUnitTable.selectedUnit!!.civ
|
||||||
bottomUnitTable.selectedCity != null -> selectedCiv = bottomUnitTable.selectedCity!!.civ
|
bottomUnitTable.selectedCity != null -> selectedCiv = bottomUnitTable.selectedCity!!.civ
|
||||||
else -> viewingCiv
|
else -> selectedCiv = viewingCiv
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user