diff options
author | Justin Clark-Casey (justincc) | 2012-07-18 21:52:07 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-07-18 21:52:07 +0100 |
commit | 4973fddc51a4a9e3952bd2decd0ea1842b742141 (patch) | |
tree | 8e525f6fbc4ea5ccfd9e8acbf36959c6f6249268 /OpenSim/Region/CoreModules | |
parent | Pass entire scene object in OnLoginsEnabled event rather than just the region... (diff) | |
download | opensim-SC_OLD-4973fddc51a4a9e3952bd2decd0ea1842b742141.zip opensim-SC_OLD-4973fddc51a4a9e3952bd2decd0ea1842b742141.tar.gz opensim-SC_OLD-4973fddc51a4a9e3952bd2decd0ea1842b742141.tar.bz2 opensim-SC_OLD-4973fddc51a4a9e3952bd2decd0ea1842b742141.tar.xz |
Establish EventManager.OnRegionReady event. This will only be triggerred once when the region is ready.
Switch MapImageServiceModule to use this.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs index 9033460..5641804 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs | |||
@@ -146,10 +146,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage | |||
146 | lock (m_scenes) | 146 | lock (m_scenes) |
147 | m_scenes[scene.RegionInfo.RegionID] = scene; | 147 | m_scenes[scene.RegionInfo.RegionID] = scene; |
148 | 148 | ||
149 | scene.EventManager.OnLoginsEnabled += OnLoginsEnabled; | 149 | scene.EventManager.OnRegionReady += s => UploadMapTile(s); |
150 | } | 150 | } |
151 | 151 | ||
152 | |||
153 | ///<summary> | 152 | ///<summary> |
154 | /// | 153 | /// |
155 | ///</summary> | 154 | ///</summary> |
@@ -163,12 +162,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage | |||
163 | } | 162 | } |
164 | 163 | ||
165 | #endregion ISharedRegionModule | 164 | #endregion ISharedRegionModule |
166 | 165 | ||
167 | void OnLoginsEnabled(IScene scene) | ||
168 | { | ||
169 | UploadMapTile(scene); | ||
170 | } | ||
171 | |||
172 | ///<summary> | 166 | ///<summary> |
173 | /// | 167 | /// |
174 | ///</summary> | 168 | ///</summary> |