diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Sun')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs index 713060f..bb4a568 100644 --- a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs | |||
@@ -230,6 +230,7 @@ namespace OpenSim.Region.Environment.Modules | |||
230 | scene.EventManager.OnAvatarEnteringNewParcel += AvatarEnteringParcel; | 230 | scene.EventManager.OnAvatarEnteringNewParcel += AvatarEnteringParcel; |
231 | scene.EventManager.OnClientClosed += ClientLoggedOut; | 231 | scene.EventManager.OnClientClosed += ClientLoggedOut; |
232 | scene.EventManager.OnEstateToolsTimeUpdate += EstateToolsTimeUpdate; | 232 | scene.EventManager.OnEstateToolsTimeUpdate += EstateToolsTimeUpdate; |
233 | scene.EventManager.OnGetSunLindenHour += GetLindenEstateHourFromCurrentTime; | ||
233 | 234 | ||
234 | ready = true; | 235 | ready = true; |
235 | 236 | ||
@@ -256,6 +257,7 @@ namespace OpenSim.Region.Environment.Modules | |||
256 | m_scene.EventManager.OnAvatarEnteringNewParcel -= AvatarEnteringParcel; | 257 | m_scene.EventManager.OnAvatarEnteringNewParcel -= AvatarEnteringParcel; |
257 | m_scene.EventManager.OnClientClosed -= ClientLoggedOut; | 258 | m_scene.EventManager.OnClientClosed -= ClientLoggedOut; |
258 | m_scene.EventManager.OnEstateToolsTimeUpdate -= EstateToolsTimeUpdate; | 259 | m_scene.EventManager.OnEstateToolsTimeUpdate -= EstateToolsTimeUpdate; |
260 | m_scene.EventManager.OnGetSunLindenHour -= GetLindenEstateHourFromCurrentTime; | ||
259 | } | 261 | } |
260 | 262 | ||
261 | public string Name | 263 | public string Name |
@@ -300,7 +302,7 @@ namespace OpenSim.Region.Environment.Modules | |||
300 | 302 | ||
301 | // set estate settings for region access to sun position | 303 | // set estate settings for region access to sun position |
302 | m_scene.RegionInfo.EstateSettings.sunPosition = Position; | 304 | m_scene.RegionInfo.EstateSettings.sunPosition = Position; |
303 | m_scene.RegionInfo.EstateSettings.sunHour = GetLindenEstateHourFromCurrentTime(); | 305 | //m_scene.RegionInfo.EstateSettings.sunHour = GetLindenEstateHourFromCurrentTime(); |
304 | } | 306 | } |
305 | public void ForceSunUpdateToAllClients() | 307 | public void ForceSunUpdateToAllClients() |
306 | { | 308 | { |