Minor fix for HG request neighbors. Should not return hyperlink neighbors, only neighbors on the same grid. I'm still not sure if this is a bug or a feature, so this may change again.

My first commit of 2009 -- Happy New Year!
0.6.2-post-fixes
diva 2009-01-01 19:29:30 +00:00
parent 59cddd0844
commit ba9d9a9019
2 changed files with 4 additions and 4 deletions

View File

@ -105,8 +105,8 @@ namespace OpenSim.Region.Communications.Hypergrid
public override List<SimpleRegionInfo> RequestNeighbours(uint x, uint y)
{
List<SimpleRegionInfo> neighbours = m_remoteBackend.RequestNeighbours(x, y);
List<SimpleRegionInfo> remotes = base.RequestNeighbours(x, y);
neighbours.AddRange(remotes);
//List<SimpleRegionInfo> remotes = base.RequestNeighbours(x, y);
//neighbours.AddRange(remotes);
return neighbours;
}

View File

@ -115,8 +115,8 @@ namespace OpenSim.Region.Communications.Hypergrid
public override List<SimpleRegionInfo> RequestNeighbours(uint x, uint y)
{
List<SimpleRegionInfo> neighbours = m_localBackend.RequestNeighbours(x, y);
List<SimpleRegionInfo> remotes = base.RequestNeighbours(x, y);
neighbours.AddRange(remotes);
//List<SimpleRegionInfo> remotes = base.RequestNeighbours(x, y);
//neighbours.AddRange(remotes);
return neighbours;
}