diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs b/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs index 3c2884b..a18225b 100644 --- a/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs +++ b/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs | |||
@@ -44,7 +44,7 @@ namespace OpenSim.Region.CoreModules.World | |||
44 | // = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 44 | // = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
45 | private uint m_frame = 0; | 45 | private uint m_frame = 0; |
46 | private int m_frameUpdateRate = 1000; | 46 | private int m_frameUpdateRate = 1000; |
47 | private Random m_rndnums = new Random(Environment.TickCount); | 47 | private Random m_rndnums; |
48 | private Scene m_scene = null; | 48 | private Scene m_scene = null; |
49 | private bool m_ready = false; | 49 | private bool m_ready = false; |
50 | private bool m_enabled = false; | 50 | private bool m_enabled = false; |
@@ -76,6 +76,10 @@ namespace OpenSim.Region.CoreModules.World | |||
76 | m_scene = scene; | 76 | m_scene = scene; |
77 | 77 | ||
78 | scene.RegisterModuleInterface<ICloudModule>(this); | 78 | scene.RegisterModuleInterface<ICloudModule>(this); |
79 | int seed = Environment.TickCount; | ||
80 | seed += (int)(scene.RegionInfo.RegionLocX << 16); | ||
81 | seed += (int)(scene.RegionInfo.RegionLocY); | ||
82 | m_rndnums = new Random(seed); | ||
79 | 83 | ||
80 | GenerateCloudCover(); | 84 | GenerateCloudCover(); |
81 | m_dataVersion = (int)m_scene.AllocateLocalId(); | 85 | m_dataVersion = (int)m_scene.AllocateLocalId(); |