From 2877c7d94df7711df27517df24fc326635dbc561 Mon Sep 17 00:00:00 2001 From: Mic Bowman Date: Tue, 28 Jan 2014 16:34:22 -0800 Subject: Actually make the parameter updates change the behavior of sun movement. --- OpenSim/Region/CoreModules/World/Sun/SunModule.cs | 4 ++++ 1 file changed, 4 insertions(+) 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 { case "year_length": m_YearLengthDays = (int)value; + SecondsPerYear = (uint) (SecondsPerSunCycle*m_YearLengthDays); break; case "day_length": m_DayLengthHours = value; + SecondsPerSunCycle = (uint) (m_DayLengthHours * 60 * 60); + SecondsPerYear = (uint) (SecondsPerSunCycle*m_YearLengthDays); break; case "day_night_offset": m_HorizonShift = value; + HorizonShift = m_HorizonShift; break; case "day_time_sun_hour_scale": -- cgit v1.1