aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/SunModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules/SunModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/SunModule.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/SunModule.cs b/OpenSim/Region/Environment/Modules/SunModule.cs
index bd6cd63..d2572c0 100644
--- a/OpenSim/Region/Environment/Modules/SunModule.cs
+++ b/OpenSim/Region/Environment/Modules/SunModule.cs
@@ -39,6 +39,8 @@ namespace OpenSim.Region.Environment.Modules
39{ 39{
40 public class SunModule : IRegionModule 40 public class SunModule : IRegionModule
41 { 41 {
42 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
43
42 private const double m_real_day = 24.0; 44 private const double m_real_day = 24.0;
43 private const int m_default_frame = 100; 45 private const int m_default_frame = 100;
44 private int m_frame_mod; 46 private int m_frame_mod;
@@ -48,7 +50,6 @@ namespace OpenSim.Region.Environment.Modules
48 private long m_start; 50 private long m_start;
49 51
50 private Scene m_scene; 52 private Scene m_scene;
51 private LogBase m_log;
52 53
53 public void Initialise(Scene scene, IConfigSource config) 54 public void Initialise(Scene scene, IConfigSource config)
54 { 55 {
@@ -69,7 +70,6 @@ namespace OpenSim.Region.Environment.Modules
69 70
70 m_dilation = (int) (m_real_day/m_day_length); 71 m_dilation = (int) (m_real_day/m_day_length);
71 m_scene = scene; 72 m_scene = scene;
72 m_log = MainLog.Instance;
73 scene.EventManager.OnFrame += SunUpdate; 73 scene.EventManager.OnFrame += SunUpdate;
74 scene.EventManager.OnNewClient += SunToClient; 74 scene.EventManager.OnNewClient += SunToClient;
75 } 75 }
@@ -104,7 +104,7 @@ namespace OpenSim.Region.Environment.Modules
104 m_frame++; 104 m_frame++;
105 return; 105 return;
106 } 106 }
107 // m_log.Verbose("SUN","I've got an update {0} => {1}", m_scene.RegionsInfo.RegionName, HourOfTheDay()); 107 // m_log.Info("[SUN]: I've got an update {0} => {1}", m_scene.RegionsInfo.RegionName, HourOfTheDay());
108 List<ScenePresence> avatars = m_scene.GetAvatars(); 108 List<ScenePresence> avatars = m_scene.GetAvatars();
109 foreach (ScenePresence avatar in avatars) 109 foreach (ScenePresence avatar in avatars)
110 { 110 {
@@ -191,4 +191,4 @@ namespace OpenSim.Region.Environment.Modules
191 // // OutPacket(viewertime); 191 // // OutPacket(viewertime);
192 // } 192 // }
193 } 193 }
194} \ No newline at end of file 194}