Fixed spurious notifications of revealed resources too far away or in foreign territory (#4464)

Co-authored-by: Frederick Hayward <frederick.hayward@student.unimelb.edu.au>
This commit is contained in:
freddyhayward
2021-07-11 04:59:46 +10:00
committed by GitHub
parent 253e62de72
commit 77b4bcd26a

View File

@ -335,6 +335,7 @@ class TechManager {
city -> CityTileAndDistance(city, tile, tile.aerialDistanceTo(city.getCenterTile()))
}
}
.filter { it.distance <= 5 && (it.tile.getOwner() == null || it.tile.getOwner() == civInfo) }
.sortedWith ( compareBy { it.distance } )
.distinctBy { it.tile }