no need to send wind on avatar arrival when it is sent periodicly

0.9.0-post-fixes
UbitUmarov 2016-09-22 19:25:04 +01:00
parent 94e983c95f
commit d3627c4f33
1 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ namespace OpenSim.Region.CoreModules
// Register event handlers for when Avatars enter the region, and frame ticks
m_scene.EventManager.OnFrame += WindUpdate;
m_scene.EventManager.OnMakeRootAgent += OnAgentEnteredRegion;
// m_scene.EventManager.OnMakeRootAgent += OnAgentEnteredRegion;
// Register the wind module
m_scene.RegisterModuleInterface<IWindModule>(this);
@ -184,7 +184,7 @@ namespace OpenSim.Region.CoreModules
// Remove our hooks
m_scene.EventManager.OnFrame -= WindUpdate;
m_scene.EventManager.OnMakeRootAgent -= OnAgentEnteredRegion;
// m_scene.EventManager.OnMakeRootAgent -= OnAgentEnteredRegion;
}
@ -425,7 +425,7 @@ namespace OpenSim.Region.CoreModules
SendWindAllClients();
}
/*
public void OnAgentEnteredRegion(ScenePresence avatar)
{
if (m_ready)
@ -444,7 +444,7 @@ namespace OpenSim.Region.CoreModules
avatar.ControllingClient.SendWindData(windSpeeds);
}
}
*/
private void SendWindAllClients()
{
if (m_ready)