Actually make the parameter updates change the behavior of

sun movement.
0.8.0.3
Mic Bowman 2014-01-28 16:34:22 -08:00
parent d25265ae82
commit 2877c7d94d
1 changed files with 4 additions and 0 deletions

View File

@ -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":