aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2010-08-08 18:18:42 +0100
committerMelanie2010-08-08 18:18:42 +0100
commita5e4a2bb3ba72470c774871f9ca739434c10c64a (patch)
tree4261c50a39dafe990dbf0b9c0ea2ee8d579fb83a /OpenSim
parentTests for distance-sorted fallback regions. (diff)
downloadopensim-SC_OLD-a5e4a2bb3ba72470c774871f9ca739434c10c64a.zip
opensim-SC_OLD-a5e4a2bb3ba72470c774871f9ca739434c10c64a.tar.gz
opensim-SC_OLD-a5e4a2bb3ba72470c774871f9ca739434c10c64a.tar.bz2
opensim-SC_OLD-a5e4a2bb3ba72470c774871f9ca739434c10c64a.tar.xz
Add distance sort for null, too
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Data/Null/NullRegionData.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Data/Null/NullRegionData.cs b/OpenSim/Data/Null/NullRegionData.cs
index f276d10..2065355 100644
--- a/OpenSim/Data/Null/NullRegionData.cs
+++ b/OpenSim/Data/Null/NullRegionData.cs
@@ -169,7 +169,10 @@ namespace OpenSim.Data.Null
169 169
170 public List<RegionData> GetFallbackRegions(UUID scopeID, int x, int y) 170 public List<RegionData> GetFallbackRegions(UUID scopeID, int x, int y)
171 { 171 {
172 return Get((int)RegionFlags.FallbackRegion, scopeID); 172 List<RegionData> regions = Get((int)RegionFlags.FallbackRegion, scopeID);
173 RegionDataDistanceCompare distanceComparer = new RegionDataDistanceCompare(x, y);
174 regions.Sort(distanceComparer);
175 return regions;
173 } 176 }
174 177
175 public List<RegionData> GetHyperlinks(UUID scopeID) 178 public List<RegionData> GetHyperlinks(UUID scopeID)
@@ -193,4 +196,4 @@ namespace OpenSim.Data.Null
193 return ret; 196 return ret;
194 } 197 }
195 } 198 }
196} \ No newline at end of file 199}