diff options
author | Charles Krinke | 2008-10-19 21:11:13 +0000 |
---|---|---|
committer | Charles Krinke | 2008-10-19 21:11:13 +0000 |
commit | a5d945e199a82985f709aea1beaeeda67787ebde (patch) | |
tree | 54aab6a12cbbef2f9b1fa3dd6a212c8b3cd4c0a1 /OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs | |
parent | * minor: remove mono warnings (diff) | |
download | opensim-SC_OLD-a5d945e199a82985f709aea1beaeeda67787ebde.zip opensim-SC_OLD-a5d945e199a82985f709aea1beaeeda67787ebde.tar.gz opensim-SC_OLD-a5d945e199a82985f709aea1beaeeda67787ebde.tar.bz2 opensim-SC_OLD-a5d945e199a82985f709aea1beaeeda67787ebde.tar.xz |
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
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Wind/WindModule.cs | 8 |
1 files changed, 7 insertions, 1 deletions
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; | |||
35 | 35 | ||
36 | namespace OpenSim.Region.Environment.Modules | 36 | namespace OpenSim.Region.Environment.Modules |
37 | { | 37 | { |
38 | public class WindModule : IRegionModule | 38 | public class WindModule : IWindModule |
39 | { | 39 | { |
40 | 40 | ||
41 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 41 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
@@ -83,6 +83,7 @@ namespace OpenSim.Region.Environment.Modules | |||
83 | scene.EventManager.OnMakeChildAgent += MakeChildAgent; | 83 | scene.EventManager.OnMakeChildAgent += MakeChildAgent; |
84 | scene.EventManager.OnAvatarEnteringNewParcel += AvatarEnteringParcel; | 84 | scene.EventManager.OnAvatarEnteringNewParcel += AvatarEnteringParcel; |
85 | scene.EventManager.OnClientClosed += ClientLoggedOut; | 85 | scene.EventManager.OnClientClosed += ClientLoggedOut; |
86 | scene.RegisterModuleInterface<IWindModule>(this); | ||
86 | 87 | ||
87 | GenWindPos(); | 88 | GenWindPos(); |
88 | 89 | ||
@@ -117,6 +118,11 @@ namespace OpenSim.Region.Environment.Modules | |||
117 | get { return false; } | 118 | get { return false; } |
118 | } | 119 | } |
119 | 120 | ||
121 | public Vector2[] WindSpeeds | ||
122 | { | ||
123 | get { return windSpeeds; } | ||
124 | } | ||
125 | |||
120 | public void WindToClient(IClientAPI client) | 126 | public void WindToClient(IClientAPI client) |
121 | { | 127 | { |
122 | if (ready) | 128 | if (ready) |