diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLRegionData.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLRegionData.cs b/OpenSim/Data/MSSQL/MSSQLRegionData.cs index 9656be1..cdf8ec0 100644 --- a/OpenSim/Data/MSSQL/MSSQLRegionData.cs +++ b/OpenSim/Data/MSSQL/MSSQLRegionData.cs | |||
@@ -315,8 +315,11 @@ namespace OpenSim.Data.MSSQL | |||
315 | 315 | ||
316 | public List<RegionData> GetFallbackRegions(UUID scopeID, int x, int y) | 316 | public List<RegionData> GetFallbackRegions(UUID scopeID, int x, int y) |
317 | { | 317 | { |
318 | // TODO: distance-sort results | 318 | List<RegionData> regions = Get((int)RegionFlags.FallbackRegion, scopeID); |
319 | return Get((int)RegionFlags.FallbackRegion, scopeID); | 319 | RegionDataDistanceCompare distanceComparer = new RegionDataDistanceCompare(x, y); |
320 | regions.Sort(distanceComparer); | ||
321 | |||
322 | return regions; | ||
320 | } | 323 | } |
321 | 324 | ||
322 | public List<RegionData> GetHyperlinks(UUID scopeID) | 325 | public List<RegionData> GetHyperlinks(UUID scopeID) |