aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLRegionData.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLRegionData.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs
index aec37e2..878b8e8 100644
--- a/OpenSim/Data/MySQL/MySQLRegionData.cs
+++ b/OpenSim/Data/MySQL/MySQLRegionData.cs
@@ -289,8 +289,10 @@ namespace OpenSim.Data.MySQL
289 289
290 public List<RegionData> GetFallbackRegions(UUID scopeID, int x, int y) 290 public List<RegionData> GetFallbackRegions(UUID scopeID, int x, int y)
291 { 291 {
292 // TODO: distance-sort results 292 List<RegionData> regions = Get((int)RegionFlags.FallbackRegion, scopeID);
293 return Get((int)RegionFlags.FallbackRegion, scopeID); 293 RegionDataDistanceCompare distanceComparer = new RegionDataDistanceCompare(x, y);
294 regions.Sort(distanceComparer);
295 return regions;
294 } 296 }
295 297
296 public List<RegionData> GetHyperlinks(UUID scopeID) 298 public List<RegionData> GetHyperlinks(UUID scopeID)