aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorUbitUmarov2016-09-23 18:28:46 +0100
committerUbitUmarov2016-09-23 18:28:46 +0100
commitf613b5f5177d153eaf3180ebf286fdd1a149cc8c (patch)
treef1cbddd28a45521a617adb839313ee27f8c9334c /OpenSim/Region/CoreModules
parentmake clouds a bit diferent on regions running on same instance.. well should ... (diff)
downloadopensim-SC-f613b5f5177d153eaf3180ebf286fdd1a149cc8c.zip
opensim-SC-f613b5f5177d153eaf3180ebf286fdd1a149cc8c.tar.gz
opensim-SC-f613b5f5177d153eaf3180ebf286fdd1a149cc8c.tar.bz2
opensim-SC-f613b5f5177d153eaf3180ebf286fdd1a149cc8c.tar.xz
fix caching of wind and cloud packets in the case of several regions on a instance, that got broken with the necessary send to child agents.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs b/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs
index a18225b..617c348 100644
--- a/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs
+++ b/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs
@@ -204,10 +204,9 @@ namespace OpenSim.Region.CoreModules.World
204 204
205 private void CloudUpdate() 205 private void CloudUpdate()
206 { 206 {
207 if ((!m_ready || m_cloudDensity == 0 || (m_frame++ % m_frameUpdateRate) != 0)) 207 if ((!m_ready || m_busy || m_cloudDensity == 0 ||
208 { 208 (m_frame++ % m_frameUpdateRate) != 0))
209 return; 209 return;
210 }
211 210
212 if(Monitor.TryEnter(cloudlock)) 211 if(Monitor.TryEnter(cloudlock))
213 { 212 {