mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-10 04:43:29 +07:00
notifications with LocationAction don't select units, but only the tile
This commit is contained in:
parent
b49270e690
commit
c3f700ddc6
@ -32,7 +32,7 @@ data class LocationAction(var locations: ArrayList<Vector2> = ArrayList()) : Not
|
||||
if (locations.isNotEmpty()) {
|
||||
var index = locations.indexOf(worldScreen.tileMapHolder.selectedTile?.position)
|
||||
index = ++index % locations.size // cycle through locations
|
||||
worldScreen.tileMapHolder.setCenterPosition(locations[index])
|
||||
worldScreen.tileMapHolder.setCenterPosition(locations[index], selectUnit = false)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user