mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
Reverted BFS changes, since they caused significant performance degradation
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user