aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Sun/SunModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Sun/SunModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Sun/SunModule.cs24
1 files changed, 13 insertions, 11 deletions
diff --git a/OpenSim/Region/CoreModules/World/Sun/SunModule.cs b/OpenSim/Region/CoreModules/World/Sun/SunModule.cs
index b36684c..060fda6 100644
--- a/OpenSim/Region/CoreModules/World/Sun/SunModule.cs
+++ b/OpenSim/Region/CoreModules/World/Sun/SunModule.cs
@@ -25,20 +25,22 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using OpenMetaverse; 30using System.Reflection;
31using Nini.Config; 31using log4net;
32using OpenSim.Framework; 32using Nini.Config;
33using OpenSim.Region.Framework.Interfaces; 33using OpenMetaverse;
34using OpenSim.Region.Framework.Scenes; 34using OpenSim.Framework;
35 35using OpenSim.Region.Framework.Interfaces;
36using OpenSim.Region.Framework.Scenes;
37
36namespace OpenSim.Region.CoreModules 38namespace OpenSim.Region.CoreModules
37{ 39{
38 public class SunModule : IRegionModule 40 public class SunModule : IRegionModule
39 { 41 {
40 42
41 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
42 44
43 private const double SeasonalTilt = 0.03 * Math.PI; // A daily shift of approximately 1.7188 degrees 45 private const double SeasonalTilt = 0.03 * Math.PI; // A daily shift of approximately 1.7188 degrees
44 private const double AverageTilt = -0.25 * Math.PI; // A 45 degree tilt 46 private const double AverageTilt = -0.25 * Math.PI; // A 45 degree tilt
@@ -104,7 +106,7 @@ namespace OpenSim.Region.CoreModules
104 private ulong CurrentTime 106 private ulong CurrentTime
105 { 107 {
106 get { 108 get {
107 return (ulong)(((System.DateTime.Now.Ticks) - TicksToEpoch + TicksOffset + LindenHourOffset)/10000000); 109 return (ulong)(((DateTime.Now.Ticks) - TicksToEpoch + TicksOffset + LindenHourOffset)/10000000);
108 } 110 }
109 } 111 }
110 112
@@ -161,7 +163,7 @@ namespace OpenSim.Region.CoreModules
161 163
162 // Align ticks with Second Life 164 // Align ticks with Second Life
163 165
164 TicksToEpoch = new System.DateTime(1970,1,1).Ticks; 166 TicksToEpoch = new DateTime(1970,1,1).Ticks;
165 167
166 // Just in case they don't have the stanzas 168 // Just in case they don't have the stanzas
167 try 169 try