diff options
Diffstat (limited to 'OpenSim/Region')
-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": |