aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
index a2aee08..97227b3 100644
--- a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
@@ -77,13 +77,19 @@ namespace OpenSim.Region.CoreModules.Hypergrid
77 77
78 public override void AddRegion(Scene scene) 78 public override void AddRegion(Scene scene)
79 { 79 {
80 if (!m_Enabled)
81 return;
82
80 base.AddRegion(scene); 83 base.AddRegion(scene);
81 84
82 scene.EventManager.OnClientClosed += new EventManager.ClientClosed(EventManager_OnClientClosed); 85 scene.EventManager.OnClientClosed += EventManager_OnClientClosed;
83 } 86 }
84 87
85 public override void RegionLoaded(Scene scene) 88 public override void RegionLoaded(Scene scene)
86 { 89 {
90 if (!m_Enabled)
91 return;
92
87 base.RegionLoaded(scene); 93 base.RegionLoaded(scene);
88 ISimulatorFeaturesModule featuresModule = m_scene.RequestModuleInterface<ISimulatorFeaturesModule>(); 94 ISimulatorFeaturesModule featuresModule = m_scene.RequestModuleInterface<ISimulatorFeaturesModule>();
89 95
@@ -93,6 +99,15 @@ namespace OpenSim.Region.CoreModules.Hypergrid
93 m_UserManagement = m_scene.RequestModuleInterface<IUserManagement>(); 99 m_UserManagement = m_scene.RequestModuleInterface<IUserManagement>();
94 100
95 } 101 }
102
103 public override void RemoveRegion(Scene scene)
104 {
105 if (!m_Enabled)
106 return;
107
108 scene.EventManager.OnClientClosed -= EventManager_OnClientClosed;
109 }
110
96 public override string Name 111 public override string Name
97 { 112 {
98 get { return "HGWorldMap"; } 113 get { return "HGWorldMap"; }