diff options
author | Teravus Ovares | 2008-06-02 10:01:02 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-06-02 10:01:02 +0000 |
commit | 42c5dca9896964f89dbd6c71bfa0057940eda80d (patch) | |
tree | a6bcebf118c05b02403b8f0c2de1ced2857c4cd9 /OpenSim/Region/Environment/Modules/World/Sun | |
parent | cleanup: uncommenting null-op else tree in TaskInventoryItem.cs (diff) | |
download | opensim-SC_OLD-42c5dca9896964f89dbd6c71bfa0057940eda80d.zip opensim-SC_OLD-42c5dca9896964f89dbd6c71bfa0057940eda80d.tar.gz opensim-SC_OLD-42c5dca9896964f89dbd6c71bfa0057940eda80d.tar.bz2 opensim-SC_OLD-42c5dca9896964f89dbd6c71bfa0057940eda80d.tar.xz |
* Fixes a bug saving the current sun phase to the estate_settings file.
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 | { |