Add distance sort for null, too

prebuild-update
Melanie 2010-08-08 18:18:42 +01:00
parent f216fd8136
commit a5e4a2bb3b
1 changed files with 5 additions and 2 deletions

View File

@ -169,7 +169,10 @@ namespace OpenSim.Data.Null
public List<RegionData> GetFallbackRegions(UUID scopeID, int x, int y)
{
return Get((int)RegionFlags.FallbackRegion, scopeID);
List<RegionData> regions = Get((int)RegionFlags.FallbackRegion, scopeID);
RegionDataDistanceCompare distanceComparer = new RegionDataDistanceCompare(x, y);
regions.Sort(distanceComparer);
return regions;
}
public List<RegionData> GetHyperlinks(UUID scopeID)
@ -193,4 +196,4 @@ namespace OpenSim.Data.Null
return ret;
}
}
}
}