diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 40 |
1 files changed, 3 insertions, 37 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 91d40ab..77068b0 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -212,7 +212,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
212 | m_scene.RegionInfo.RegionSettings.FixedSun = UseFixedSun; | 212 | m_scene.RegionInfo.RegionSettings.FixedSun = UseFixedSun; |
213 | m_scene.RegionInfo.RegionSettings.SunPosition = SunHour; | 213 | m_scene.RegionInfo.RegionSettings.SunPosition = SunHour; |
214 | 214 | ||
215 | TriggerEstateToolsSunUpdate(); | 215 | m_scene.TriggerEstateSunUpdate(); |
216 | 216 | ||
217 | //m_log.Debug("[ESTATE]: UFS: " + UseFixedSun.ToString()); | 217 | //m_log.Debug("[ESTATE]: UFS: " + UseFixedSun.ToString()); |
218 | //m_log.Debug("[ESTATE]: SunHour: " + SunHour.ToString()); | 218 | //m_log.Debug("[ESTATE]: SunHour: " + SunHour.ToString()); |
@@ -861,7 +861,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
861 | 861 | ||
862 | m_scene.RegionInfo.EstateSettings.Save(); | 862 | m_scene.RegionInfo.EstateSettings.Save(); |
863 | 863 | ||
864 | TriggerEstateToolsSunUpdate(); | 864 | m_scene.TriggerEstateSunUpdate(); |
865 | 865 | ||
866 | sendDetailedEstateData(remoteClient, invoice); | 866 | sendDetailedEstateData(remoteClient, invoice); |
867 | } | 867 | } |
@@ -983,7 +983,7 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
983 | { | 983 | { |
984 | // Sets up the sun module based no the saved Estate and Region Settings | 984 | // Sets up the sun module based no the saved Estate and Region Settings |
985 | // DO NOT REMOVE or the sun will stop working | 985 | // DO NOT REMOVE or the sun will stop working |
986 | TriggerEstateToolsSunUpdate(); | 986 | m_scene.TriggerEstateSunUpdate(); |
987 | } | 987 | } |
988 | 988 | ||
989 | public void Close() | 989 | public void Close() |
@@ -1004,40 +1004,6 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
1004 | 1004 | ||
1005 | #region Other Functions | 1005 | #region Other Functions |
1006 | 1006 | ||
1007 | private void TriggerEstateToolsSunUpdate() | ||
1008 | { | ||
1009 | float sun; | ||
1010 | if (m_scene.RegionInfo.RegionSettings.UseEstateSun) | ||
1011 | { | ||
1012 | sun = (float)m_scene.RegionInfo.EstateSettings.SunPosition; | ||
1013 | if (m_scene.RegionInfo.EstateSettings.UseGlobalTime) | ||
1014 | { | ||
1015 | sun = m_scene.EventManager.GetCurrentTimeAsSunLindenHour() - 6.0f; | ||
1016 | } | ||
1017 | |||
1018 | // | ||
1019 | m_scene.EventManager.TriggerEstateToolsSunUpdate( | ||
1020 | m_scene.RegionInfo.RegionHandle, | ||
1021 | m_scene.RegionInfo.EstateSettings.FixedSun, | ||
1022 | m_scene.RegionInfo.RegionSettings.UseEstateSun, | ||
1023 | sun); | ||
1024 | } | ||
1025 | else | ||
1026 | { | ||
1027 | // Use the Sun Position from the Region Settings | ||
1028 | sun = (float)m_scene.RegionInfo.RegionSettings.SunPosition - 6.0f; | ||
1029 | |||
1030 | m_scene.EventManager.TriggerEstateToolsSunUpdate( | ||
1031 | m_scene.RegionInfo.RegionHandle, | ||
1032 | m_scene.RegionInfo.RegionSettings.FixedSun, | ||
1033 | m_scene.RegionInfo.RegionSettings.UseEstateSun, | ||
1034 | sun); | ||
1035 | } | ||
1036 | |||
1037 | |||
1038 | } | ||
1039 | |||
1040 | |||
1041 | public void changeWaterHeight(float height) | 1007 | public void changeWaterHeight(float height) |
1042 | { | 1008 | { |
1043 | setRegionTerrainSettings(height, | 1009 | setRegionTerrainSettings(height, |