notifications with LocationAction don't select units, but only the tile

This commit is contained in:
martin 2019-05-23 13:37:21 +02:00 committed by Yair Morgenstern
parent b49270e690
commit c3f700ddc6

View File

@ -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)
}
}