parent
d25265ae82
commit
2877c7d94d
|
@ -616,14 +616,18 @@ namespace OpenSim.Region.CoreModules
|
||||||
{
|
{
|
||||||
case "year_length":
|
case "year_length":
|
||||||
m_YearLengthDays = (int)value;
|
m_YearLengthDays = (int)value;
|
||||||
|
SecondsPerYear = (uint) (SecondsPerSunCycle*m_YearLengthDays);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "day_length":
|
case "day_length":
|
||||||
m_DayLengthHours = value;
|
m_DayLengthHours = value;
|
||||||
|
SecondsPerSunCycle = (uint) (m_DayLengthHours * 60 * 60);
|
||||||
|
SecondsPerYear = (uint) (SecondsPerSunCycle*m_YearLengthDays);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "day_night_offset":
|
case "day_night_offset":
|
||||||
m_HorizonShift = value;
|
m_HorizonShift = value;
|
||||||
|
HorizonShift = m_HorizonShift;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "day_time_sun_hour_scale":
|
case "day_time_sun_hour_scale":
|
||||||
|
|
Loading…
Reference in New Issue