mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Merge branch 'master' into careminster-presence-refactor
This commit is contained in:
@@ -271,6 +271,7 @@ namespace OpenSim.Services.GridService
|
||||
{
|
||||
List<GridRegion> rinfos = new List<GridRegion>();
|
||||
RegionData region = m_Database.Get(regionID, scopeID);
|
||||
|
||||
if (region != null)
|
||||
{
|
||||
// Not really? Maybe?
|
||||
@@ -278,15 +279,24 @@ namespace OpenSim.Services.GridService
|
||||
region.posX + (int)Constants.RegionSize + 1, region.posY + (int)Constants.RegionSize + 1, scopeID);
|
||||
|
||||
foreach (RegionData rdata in rdatas)
|
||||
{
|
||||
if (rdata.RegionID != regionID)
|
||||
{
|
||||
int flags = Convert.ToInt32(rdata.Data["flags"]);
|
||||
if ((flags & (int)Data.RegionFlags.Hyperlink) == 0) // no hyperlinks as neighbours
|
||||
rinfos.Add(RegionData2RegionInfo(rdata));
|
||||
}
|
||||
}
|
||||
|
||||
m_log.DebugFormat("[GRID SERVICE]: region {0} has {1} neighbours", region.RegionName, rinfos.Count);
|
||||
}
|
||||
m_log.DebugFormat("[GRID SERVICE]: region {0} has {1} neighbours", region.RegionName, rinfos.Count);
|
||||
else
|
||||
{
|
||||
m_log.WarnFormat(
|
||||
"[GRID SERVICE]: GetNeighbours() called for scope {0}, region {1} but no such region found",
|
||||
scopeID, regionID);
|
||||
}
|
||||
|
||||
return rinfos;
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ namespace OpenSim.Services.GridService
|
||||
|
||||
m_Check4096 = gridConfig.GetBoolean("Check4096", true);
|
||||
|
||||
m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", string.Empty);
|
||||
m_MapTileDirectory = gridConfig.GetString("MapTileDirectory", "maptiles");
|
||||
|
||||
m_GatekeeperConnector = new GatekeeperServiceConnector(m_AssetService);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user