diff options
author | Dr Scofield | 2008-06-27 23:03:39 +0000 |
---|---|---|
committer | Dr Scofield | 2008-06-27 23:03:39 +0000 |
commit | 748f72326d9a295958bc9ba63bbb1a5d39030ef7 (patch) | |
tree | 58f2c9a5f6b8ffab5ad3621070aa17cb1c1e3e6b /OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs | |
parent | more warnings to go. (diff) | |
download | opensim-SC_OLD-748f72326d9a295958bc9ba63bbb1a5d39030ef7.zip opensim-SC_OLD-748f72326d9a295958bc9ba63bbb1a5d39030ef7.tar.gz opensim-SC_OLD-748f72326d9a295958bc9ba63bbb1a5d39030ef7.tar.bz2 opensim-SC_OLD-748f72326d9a295958bc9ba63bbb1a5d39030ef7.tar.xz |
last round of warning squashing. calling it a day now.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs index bb4a568..f73c193 100644 --- a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs | |||
@@ -57,16 +57,16 @@ namespace OpenSim.Region.Environment.Modules | |||
57 | private double m_day_length = 0; | 57 | private double m_day_length = 0; |
58 | private int m_year_length = 0; | 58 | private int m_year_length = 0; |
59 | private double m_day_night = 0; | 59 | private double m_day_night = 0; |
60 | private double m_longitude = 0; | 60 | // private double m_longitude = 0; |
61 | private double m_latitude = 0; | 61 | // private double m_latitude = 0; |
62 | // Configurable defaults Defaults close to SL | 62 | // Configurable defaults Defaults close to SL |
63 | private string d_mode = "SL"; | 63 | private string d_mode = "SL"; |
64 | private int d_frame_mod = 100; // Every 10 seconds (actually less) | 64 | private int d_frame_mod = 100; // Every 10 seconds (actually less) |
65 | private double d_day_length = 4; // A VW day is 4 RW hours long | 65 | private double d_day_length = 4; // A VW day is 4 RW hours long |
66 | private int d_year_length = 60; // There are 60 VW days in a VW year | 66 | private int d_year_length = 60; // There are 60 VW days in a VW year |
67 | private double d_day_night = 0.45; // axis offset: ratio of light-to-dark, approx 1:3 | 67 | private double d_day_night = 0.45; // axis offset: ratio of light-to-dark, approx 1:3 |
68 | private double d_longitude = -73.53; | 68 | // private double d_longitude = -73.53; |
69 | private double d_latitude = 41.29; | 69 | // private double d_latitude = 41.29; |
70 | 70 | ||
71 | // Frame counter | 71 | // Frame counter |
72 | private uint m_frame = 0; | 72 | private uint m_frame = 0; |
@@ -80,7 +80,7 @@ namespace OpenSim.Region.Environment.Modules | |||
80 | private uint SecondsPerYear; // Length of a virtual year in RW seconds | 80 | private uint SecondsPerYear; // Length of a virtual year in RW seconds |
81 | private double SunSpeed; // Rate of passage in radians/second | 81 | private double SunSpeed; // Rate of passage in radians/second |
82 | private double SeasonSpeed; // Rate of change for seasonal effects | 82 | private double SeasonSpeed; // Rate of change for seasonal effects |
83 | private double HoursToRadians; // Rate of change for seasonal effects | 83 | // private double HoursToRadians; // Rate of change for seasonal effects |
84 | private long TicksOffset = 0; // seconds offset from UTC | 84 | private long TicksOffset = 0; // seconds offset from UTC |
85 | // Calculated every update | 85 | // Calculated every update |
86 | private float OrbitalPosition; // Orbital placement at a point in time | 86 | private float OrbitalPosition; // Orbital placement at a point in time |
@@ -88,7 +88,7 @@ namespace OpenSim.Region.Environment.Modules | |||
88 | private double TotalDistanceTravelled; // Distance since beginning of time (in radians) | 88 | private double TotalDistanceTravelled; // Distance since beginning of time (in radians) |
89 | private double SeasonalOffset; // Seaonal variation of tilt | 89 | private double SeasonalOffset; // Seaonal variation of tilt |
90 | private float Magnitude; // Normal tilt | 90 | private float Magnitude; // Normal tilt |
91 | private double VWTimeRatio; // VW time as a ratio of real time | 91 | // private double VWTimeRatio; // VW time as a ratio of real time |
92 | 92 | ||
93 | // Working values | 93 | // Working values |
94 | private LLVector3 Position = new LLVector3(0,0,0); | 94 | private LLVector3 Position = new LLVector3(0,0,0); |
@@ -173,9 +173,9 @@ namespace OpenSim.Region.Environment.Modules | |||
173 | // Mode: determines how the sun is handled | 173 | // Mode: determines how the sun is handled |
174 | m_mode = config.Configs["Sun"].GetString("mode", d_mode); | 174 | m_mode = config.Configs["Sun"].GetString("mode", d_mode); |
175 | // Mode: determines how the sun is handled | 175 | // Mode: determines how the sun is handled |
176 | m_latitude = config.Configs["Sun"].GetDouble("latitude", d_latitude); | 176 | // m_latitude = config.Configs["Sun"].GetDouble("latitude", d_latitude); |
177 | // Mode: determines how the sun is handled | 177 | // Mode: determines how the sun is handled |
178 | m_longitude = config.Configs["Sun"].GetDouble("longitude", d_longitude); | 178 | // m_longitude = config.Configs["Sun"].GetDouble("longitude", d_longitude); |
179 | // Day length in decimal hours | 179 | // Day length in decimal hours |
180 | m_year_length = config.Configs["Sun"].GetInt("year_length", d_year_length); | 180 | m_year_length = config.Configs["Sun"].GetInt("year_length", d_year_length); |
181 | // Day length in decimal hours | 181 | // Day length in decimal hours |
@@ -193,8 +193,8 @@ namespace OpenSim.Region.Environment.Modules | |||
193 | m_day_length = d_day_length; | 193 | m_day_length = d_day_length; |
194 | m_day_night = d_day_night; | 194 | m_day_night = d_day_night; |
195 | m_frame_mod = d_frame_mod; | 195 | m_frame_mod = d_frame_mod; |
196 | m_latitude = d_latitude; | 196 | // m_latitude = d_latitude; |
197 | m_longitude = d_longitude; | 197 | // m_longitude = d_longitude; |
198 | } | 198 | } |
199 | 199 | ||
200 | switch (m_mode) | 200 | switch (m_mode) |
@@ -209,7 +209,7 @@ namespace OpenSim.Region.Environment.Modules | |||
209 | 209 | ||
210 | // Ration of real-to-virtual time | 210 | // Ration of real-to-virtual time |
211 | 211 | ||
212 | VWTimeRatio = 24/m_day_length; | 212 | // VWTimeRatio = 24/m_day_length; |
213 | 213 | ||
214 | // Speed of rotation needed to complete a cycle in the | 214 | // Speed of rotation needed to complete a cycle in the |
215 | // designated period (day and season) | 215 | // designated period (day and season) |
@@ -220,7 +220,7 @@ namespace OpenSim.Region.Environment.Modules | |||
220 | // Horizon translation | 220 | // Horizon translation |
221 | 221 | ||
222 | HorizonShift = m_day_night; // Z axis translation | 222 | HorizonShift = m_day_night; // Z axis translation |
223 | HoursToRadians = (SunCycle/24)*VWTimeRatio; | 223 | // HoursToRadians = (SunCycle/24)*VWTimeRatio; |
224 | 224 | ||
225 | // Insert our event handling hooks | 225 | // Insert our event handling hooks |
226 | 226 | ||