From a5e4a2bb3ba72470c774871f9ca739434c10c64a Mon Sep 17 00:00:00 2001 From: Melanie Date: Sun, 8 Aug 2010 18:18:42 +0100 Subject: Add distance sort for null, too --- OpenSim/Data/Null/NullRegionData.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Data') 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 public List GetFallbackRegions(UUID scopeID, int x, int y) { - return Get((int)RegionFlags.FallbackRegion, scopeID); + List regions = Get((int)RegionFlags.FallbackRegion, scopeID); + RegionDataDistanceCompare distanceComparer = new RegionDataDistanceCompare(x, y); + regions.Sort(distanceComparer); + return regions; } public List GetHyperlinks(UUID scopeID) @@ -193,4 +196,4 @@ namespace OpenSim.Data.Null return ret; } } -} \ No newline at end of file +} -- cgit v1.1