From 3bd0df18b76de72f678bd656d1f87f15079e94bb Mon Sep 17 00:00:00 2001 From: diva Date: Sun, 1 Feb 2009 02:20:57 +0000 Subject: More on dynamic hyperlinks. Making the 4096 check (deregistration of region) work in grid mode. --- OpenSim/Region/Environment/Modules/World/WorldMap/MapSearchModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Modules/World/WorldMap/MapSearchModule.cs b/OpenSim/Region/Environment/Modules/World/WorldMap/MapSearchModule.cs index 7346d92..6541571 100644 --- a/OpenSim/Region/Environment/Modules/World/WorldMap/MapSearchModule.cs +++ b/OpenSim/Region/Environment/Modules/World/WorldMap/MapSearchModule.cs @@ -250,7 +250,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap if ((Math.Abs((int)m_scene.RegionInfo.RegionLocX - (int)x) >= 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."); client.SendAlertMessage("Region is too far (" + x + ", " + y + ")"); return false; -- cgit v1.1