mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-24 06:39:16 +07:00
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:
@ -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 }
|
||||
|
||||
|
Reference in New Issue
Block a user