diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs index 6d3ace9..322a9f8 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs | |||
@@ -146,9 +146,10 @@ 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.OnPrimsLoaded += new EventManager.PrimsLoaded(EventManager_OnPrimsLoaded); | 149 | scene.EventManager.OnLoginsEnabled += OnLoginsEnabled; |
150 | } | 150 | } |
151 | 151 | ||
152 | |||
152 | ///<summary> | 153 | ///<summary> |
153 | /// | 154 | /// |
154 | ///</summary> | 155 | ///</summary> |
@@ -163,9 +164,17 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage | |||
163 | 164 | ||
164 | #endregion ISharedRegionModule | 165 | #endregion ISharedRegionModule |
165 | 166 | ||
166 | void EventManager_OnPrimsLoaded(Scene s) | 167 | void OnLoginsEnabled(string regionName) |
167 | { | 168 | { |
168 | UploadMapTile(s); | 169 | Scene scene = null; |
170 | foreach (Scene s in m_scenes.Values) | ||
171 | if (s.RegionInfo.RegionName == regionName) | ||
172 | { | ||
173 | scene = s; | ||
174 | break; | ||
175 | } | ||
176 | if (scene != null) | ||
177 | UploadMapTile(scene); | ||
169 | } | 178 | } |
170 | 179 | ||
171 | 180 | ||