From a5d945e199a82985f709aea1beaeeda67787ebde Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 19 Oct 2008 21:11:13 +0000 Subject: Thank you kindly, Idb for a patch that solves: llWind always returns a zero vector. In the attached patch the WindModule has been changed slightly to make wind data available for llWind --- OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Modules/World') diff --git a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs index 3fdb771..52eb6e7 100644 --- a/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs @@ -35,7 +35,7 @@ using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.Environment.Modules { - public class WindModule : IRegionModule + public class WindModule : IWindModule { private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); @@ -83,6 +83,7 @@ namespace OpenSim.Region.Environment.Modules scene.EventManager.OnMakeChildAgent += MakeChildAgent; scene.EventManager.OnAvatarEnteringNewParcel += AvatarEnteringParcel; scene.EventManager.OnClientClosed += ClientLoggedOut; + scene.RegisterModuleInterface(this); GenWindPos(); @@ -117,6 +118,11 @@ namespace OpenSim.Region.Environment.Modules get { return false; } } + public Vector2[] WindSpeeds + { + get { return windSpeeds; } + } + public void WindToClient(IClientAPI client) { if (ready) -- cgit v1.1