mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04: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:
parent
253e62de72
commit
77b4bcd26a
@ -335,6 +335,7 @@ class TechManager {
|
|||||||
city -> CityTileAndDistance(city, tile, tile.aerialDistanceTo(city.getCenterTile()))
|
city -> CityTileAndDistance(city, tile, tile.aerialDistanceTo(city.getCenterTile()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.filter { it.distance <= 5 && (it.tile.getOwner() == null || it.tile.getOwner() == civInfo) }
|
||||||
.sortedWith ( compareBy { it.distance } )
|
.sortedWith ( compareBy { it.distance } )
|
||||||
.distinctBy { it.tile }
|
.distinctBy { it.tile }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user