diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Environment/Modules/SunModule.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/SunModule.cs b/OpenSim/Region/Environment/Modules/SunModule.cs index 5b05dba..d8b1ec9 100644 --- a/OpenSim/Region/Environment/Modules/SunModule.cs +++ b/OpenSim/Region/Environment/Modules/SunModule.cs | |||
@@ -41,7 +41,7 @@ namespace OpenSim.Region.Environment.Modules | |||
41 | public class SunModule : IRegionModule | 41 | public class SunModule : IRegionModule |
42 | { | 42 | { |
43 | private static double m_real_day = 24.0; | 43 | private static double m_real_day = 24.0; |
44 | private static int m_frame_mod = 100; | 44 | private int m_frame_mod = 100; |
45 | private double m_day_length; | 45 | private double m_day_length; |
46 | private int m_dilation; | 46 | private int m_dilation; |
47 | private int m_frame; | 47 | private int m_frame; |
@@ -54,7 +54,8 @@ namespace OpenSim.Region.Environment.Modules | |||
54 | { | 54 | { |
55 | m_start = DateTime.Now.Ticks; | 55 | m_start = DateTime.Now.Ticks; |
56 | m_frame = 0; | 56 | m_frame = 0; |
57 | m_day_length = 0.5; | 57 | m_day_length = config.Configs["Sun"].GetDouble("day_length", 0.5); |
58 | m_frame_mod = config.Configs["Sun"].GetInt("frame_rate", 100); | ||
58 | m_dilation = (int)(m_real_day / m_day_length); | 59 | m_dilation = (int)(m_real_day / m_day_length); |
59 | m_scene = scene; | 60 | m_scene = scene; |
60 | m_log = MainLog.Instance; | 61 | m_log = MainLog.Instance; |