aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2016-09-23 17:13:59 +0100
committerUbitUmarov2016-09-23 17:13:59 +0100
commit22b531f2e4918589cb337a5a429215aa40a50fa5 (patch)
treeb3f14a1741443b4c436185547f759c375fbb6e51 /OpenSim/Region
parentdo the same for legacy clouds (still visible on older viewer ie singu 1.8.7).... (diff)
downloadopensim-SC-22b531f2e4918589cb337a5a429215aa40a50fa5.zip
opensim-SC-22b531f2e4918589cb337a5a429215aa40a50fa5.tar.gz
opensim-SC-22b531f2e4918589cb337a5a429215aa40a50fa5.tar.bz2
opensim-SC-22b531f2e4918589cb337a5a429215aa40a50fa5.tar.xz
make clouds a bit diferent on regions running on same instance.. well should be diferent .. :)
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs6
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();