From 22b531f2e4918589cb337a5a429215aa40a50fa5 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 23 Sep 2016 17:13:59 +0100 Subject: [PATCH] make clouds a bit diferent on regions running on same instance.. well should be diferent .. :) --- OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs b/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs index 3c2884b385..a18225b9a0 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 // = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); private uint m_frame = 0; private int m_frameUpdateRate = 1000; - private Random m_rndnums = new Random(Environment.TickCount); + private Random m_rndnums; private Scene m_scene = null; private bool m_ready = false; private bool m_enabled = false; @@ -76,6 +76,10 @@ namespace OpenSim.Region.CoreModules.World m_scene = scene; scene.RegisterModuleInterface(this); + int seed = Environment.TickCount; + seed += (int)(scene.RegionInfo.RegionLocX << 16); + seed += (int)(scene.RegionInfo.RegionLocY); + m_rndnums = new Random(seed); GenerateCloudCover(); m_dataVersion = (int)m_scene.AllocateLocalId();