More on dynamic hyperlinks. Making the 4096 check (deregistration of region) work in grid mode.
parent
ff149ae197
commit
3bd0df18b7
|
@ -96,9 +96,9 @@ namespace OpenSim.Region.Communications.Hypergrid
|
||||||
|
|
||||||
public override bool DeregisterRegion(RegionInfo regionInfo)
|
public override bool DeregisterRegion(RegionInfo regionInfo)
|
||||||
{
|
{
|
||||||
bool success = m_remoteBackend.DeregisterRegion(regionInfo);
|
bool success = base.DeregisterRegion(regionInfo);
|
||||||
if (!success)
|
if (!success)
|
||||||
success = base.DeregisterRegion(regionInfo);
|
success = m_remoteBackend.DeregisterRegion(regionInfo);
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -250,7 +250,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
|
||||||
if ((Math.Abs((int)m_scene.RegionInfo.RegionLocX - (int)x) >= 4096) ||
|
if ((Math.Abs((int)m_scene.RegionInfo.RegionLocX - (int)x) >= 4096) ||
|
||||||
(Math.Abs((int)m_scene.RegionInfo.RegionLocY - (int)y) >= 4096))
|
(Math.Abs((int)m_scene.RegionInfo.RegionLocY - (int)y) >= 4096))
|
||||||
{
|
{
|
||||||
m_scene.CommsManager.GridService.RegisterRegion(regInfo);
|
m_scene.CommsManager.GridService.DeregisterRegion(regInfo);
|
||||||
m_log.Debug("[HGrid]: Region deregistered.");
|
m_log.Debug("[HGrid]: Region deregistered.");
|
||||||
client.SendAlertMessage("Region is too far (" + x + ", " + y + ")");
|
client.SendAlertMessage("Region is too far (" + x + ", " + y + ")");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue