diff options
author | onefang | 2019-05-19 21:24:15 +1000 |
---|---|---|
committer | onefang | 2019-05-19 21:24:15 +1000 |
commit | 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb (patch) | |
tree | a9fbc62df9eb2d1d9ba2698d8552eae71eca20d8 /OpenSim/Region/CoreModules/World/Sun | |
parent | Add a build script. (diff) | |
download | opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.zip opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.gz opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.bz2 opensim-SC-5e4d6cab00cb29cd088ab7b62ab13aff103b64cb.tar.xz |
Dump OpenSim 0.9.0.1 into it's own branch.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Sun')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Sun/SunModule.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/World/Sun/SunModule.cs b/OpenSim/Region/CoreModules/World/Sun/SunModule.cs index d0318eb..e2b3487 100644 --- a/OpenSim/Region/CoreModules/World/Sun/SunModule.cs +++ b/OpenSim/Region/CoreModules/World/Sun/SunModule.cs | |||
@@ -77,7 +77,7 @@ namespace OpenSim.Region.CoreModules | |||
77 | // Number of virtual days to a virtual year | 77 | // Number of virtual days to a virtual year |
78 | private int m_YearLengthDays = 0; | 78 | private int m_YearLengthDays = 0; |
79 | 79 | ||
80 | // Ratio of Daylight hours to Night time hours. This is accomplished by shifting the | 80 | // Ratio of Daylight hours to Night time hours. This is accomplished by shifting the |
81 | // sun's orbit above the horizon | 81 | // sun's orbit above the horizon |
82 | private double m_HorizonShift = 0; | 82 | private double m_HorizonShift = 0; |
83 | 83 | ||
@@ -162,7 +162,7 @@ namespace OpenSim.Region.CoreModules | |||
162 | // Determine the current "day" from current time, so we can use "today" | 162 | // Determine the current "day" from current time, so we can use "today" |
163 | // to determine Seasonal Tilt and what'not | 163 | // to determine Seasonal Tilt and what'not |
164 | 164 | ||
165 | // Integer math rounded is on purpose to drop fractional day, determines number | 165 | // Integer math rounded is on purpose to drop fractional day, determines number |
166 | // of virtual days since Epoch | 166 | // of virtual days since Epoch |
167 | PosTime = CurrentTime / SecondsPerSunCycle; | 167 | PosTime = CurrentTime / SecondsPerSunCycle; |
168 | 168 | ||
@@ -343,7 +343,7 @@ namespace OpenSim.Region.CoreModules | |||
343 | m_log.Debug("[SUN]: Positional data updated every " + m_UpdateInterval + " frames"); | 343 | m_log.Debug("[SUN]: Positional data updated every " + m_UpdateInterval + " frames"); |
344 | } | 344 | } |
345 | 345 | ||
346 | public Type ReplaceableInterface | 346 | public Type ReplaceableInterface |
347 | { | 347 | { |
348 | get { return null; } | 348 | get { return null; } |
349 | } | 349 | } |
@@ -417,7 +417,7 @@ namespace OpenSim.Region.CoreModules | |||
417 | client.SendSunPos(Position, Velocity, CurrentTime, SecondsPerSunCycle, SecondsPerYear, OrbitalPosition); | 417 | client.SendSunPos(Position, Velocity, CurrentTime, SecondsPerSunCycle, SecondsPerYear, OrbitalPosition); |
418 | } | 418 | } |
419 | } | 419 | } |
420 | } | 420 | } |
421 | 421 | ||
422 | public void SunUpdate() | 422 | public void SunUpdate() |
423 | { | 423 | { |
@@ -464,7 +464,7 @@ namespace OpenSim.Region.CoreModules | |||
464 | 464 | ||
465 | while (sunFixedHour < 0) | 465 | while (sunFixedHour < 0) |
466 | sunFixedHour += 24; | 466 | sunFixedHour += 24; |
467 | 467 | ||
468 | m_SunFixedHour = sunFixedHour; | 468 | m_SunFixedHour = sunFixedHour; |
469 | m_SunFixed = fixedSun; | 469 | m_SunFixed = fixedSun; |
470 | 470 | ||
@@ -516,7 +516,7 @@ namespace OpenSim.Region.CoreModules | |||
516 | 516 | ||
517 | case "current_time": | 517 | case "current_time": |
518 | return GetCurrentTimeAsLindenSunHour(); | 518 | return GetCurrentTimeAsLindenSunHour(); |
519 | 519 | ||
520 | default: | 520 | default: |
521 | throw new Exception("Unknown sun parameter."); | 521 | throw new Exception("Unknown sun parameter."); |
522 | } | 522 | } |