mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
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
This commit is contained in:
@@ -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<IWindModule>(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)
|
||||
|
||||
Reference in New Issue
Block a user