From d3627c4f33d59568b909f4db5a7456e737e32250 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 22 Sep 2016 19:25:04 +0100 Subject: [PATCH] no need to send wind on avatar arrival when it is sent periodicly --- OpenSim/Region/CoreModules/World/Wind/WindModule.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/CoreModules/World/Wind/WindModule.cs b/OpenSim/Region/CoreModules/World/Wind/WindModule.cs index 35014f531b..2f401bf2dd 100644 --- a/OpenSim/Region/CoreModules/World/Wind/WindModule.cs +++ b/OpenSim/Region/CoreModules/World/Wind/WindModule.cs @@ -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(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)