mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 15:29:32 +07:00
fixed broken build
This commit is contained in:
@ -320,7 +320,7 @@ class WorldMapHolder(
|
|||||||
moveUnitToTargetTile(selectedUnits.subList(1, selectedUnits.size), targetTile)
|
moveUnitToTargetTile(selectedUnits.subList(1, selectedUnits.size), targetTile)
|
||||||
} else removeUnitActionOverlay() //we're done here
|
} else removeUnitActionOverlay() //we're done here
|
||||||
|
|
||||||
if (UncivGame.Current.settings.autoUnitCycle && selected!unit.hasMovement())
|
if (UncivGame.Current.settings.autoUnitCycle && selectedUnit.hasMovement())
|
||||||
worldScreen.switchToNextUnit()
|
worldScreen.switchToNextUnit()
|
||||||
|
|
||||||
} catch (ex: Exception) {
|
} catch (ex: Exception) {
|
||||||
@ -378,7 +378,7 @@ class WorldMapHolder(
|
|||||||
// Play something like a swish-swoosh
|
// Play something like a swish-swoosh
|
||||||
SoundPlayer.play(UncivSound.Swap)
|
SoundPlayer.play(UncivSound.Swap)
|
||||||
|
|
||||||
if (selectedunit.hasMovement()) worldScreen.bottomUnitTable.selectUnit(selectedUnit)
|
if (selectedUnit.hasMovement()) worldScreen.bottomUnitTable.selectUnit(selectedUnit)
|
||||||
|
|
||||||
worldScreen.shouldUpdate = true
|
worldScreen.shouldUpdate = true
|
||||||
removeUnitActionOverlay()
|
removeUnitActionOverlay()
|
||||||
|
Reference in New Issue
Block a user