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.

This commit is contained in:
UbitUmarov
2016-09-23 18:28:46 +01:00
parent 22b531f2e4
commit f613b5f517
2 changed files with 47 additions and 47 deletions

View File

@@ -204,10 +204,9 @@ namespace OpenSim.Region.CoreModules.World
private void CloudUpdate()
{
if ((!m_ready || m_cloudDensity == 0 || (m_frame++ % m_frameUpdateRate) != 0))
{
if ((!m_ready || m_busy || m_cloudDensity == 0 ||
(m_frame++ % m_frameUpdateRate) != 0))
return;
}
if(Monitor.TryEnter(cloudlock))
{