diff options
author | Mic Bowman | 2014-01-28 16:34:22 -0800 |
---|---|---|
committer | Mic Bowman | 2014-01-28 16:34:22 -0800 |
commit | 2877c7d94df7711df27517df24fc326635dbc561 (patch) | |
tree | e5505fee5d03af562ccbb4de76ef3d1cd45211fd /OpenSim | |
parent | Fix terrain tests by properly initializing low detail terrain to zero height. (diff) | |
download | opensim-SC-2877c7d94df7711df27517df24fc326635dbc561.zip opensim-SC-2877c7d94df7711df27517df24fc326635dbc561.tar.gz opensim-SC-2877c7d94df7711df27517df24fc326635dbc561.tar.bz2 opensim-SC-2877c7d94df7711df27517df24fc326635dbc561.tar.xz |
Actually make the parameter updates change the behavior of
sun movement.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Sun/SunModule.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Sun/SunModule.cs b/OpenSim/Region/CoreModules/World/Sun/SunModule.cs index c0b7312..e04cb29 100644 --- a/OpenSim/Region/CoreModules/World/Sun/SunModule.cs +++ b/OpenSim/Region/CoreModules/World/Sun/SunModule.cs | |||
@@ -616,14 +616,18 @@ namespace OpenSim.Region.CoreModules | |||
616 | { | 616 | { |
617 | case "year_length": | 617 | case "year_length": |
618 | m_YearLengthDays = (int)value; | 618 | m_YearLengthDays = (int)value; |
619 | SecondsPerYear = (uint) (SecondsPerSunCycle*m_YearLengthDays); | ||
619 | break; | 620 | break; |
620 | 621 | ||
621 | case "day_length": | 622 | case "day_length": |
622 | m_DayLengthHours = value; | 623 | m_DayLengthHours = value; |
624 | SecondsPerSunCycle = (uint) (m_DayLengthHours * 60 * 60); | ||
625 | SecondsPerYear = (uint) (SecondsPerSunCycle*m_YearLengthDays); | ||
623 | break; | 626 | break; |
624 | 627 | ||
625 | case "day_night_offset": | 628 | case "day_night_offset": |
626 | m_HorizonShift = value; | 629 | m_HorizonShift = value; |
630 | HorizonShift = m_HorizonShift; | ||
627 | break; | 631 | break; |
628 | 632 | ||
629 | case "day_time_sun_hour_scale": | 633 | case "day_time_sun_hour_scale": |