mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-07 14:02:48 +07:00
Reverted BFS changes, since they caused significant performance degradation
This commit is contained in:
parent
298771a72b
commit
c823989c39
@ -384,9 +384,7 @@ object NextTurnAutomation {
|
||||
val cityWithLeastCostToBuy = highlyDesirableTile.value.minBy {
|
||||
it.getCenterTile().aerialDistanceTo(highlyDesirableTile.key)
|
||||
}
|
||||
val bfs = BFS(cityWithLeastCostToBuy.getCenterTile(),
|
||||
// Give higher priority on the way to intermediate tiles with higher ranking stats
|
||||
{ Automation.rankStatsValue(it.stats.getTileStats(cityWithLeastCostToBuy, civInfo), civInfo).toInt() })
|
||||
val bfs = BFS(cityWithLeastCostToBuy.getCenterTile())
|
||||
{
|
||||
it.getOwner() == null || it.getOwner() == civInfo
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user