mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
Massive tab and trailing space cleanup
This commit is contained in:
@@ -50,7 +50,7 @@ namespace OpenSim.Region.CoreModules.World.Wind.Plugins
|
||||
private float m_avgDirection = 0.0f; // Average direction of the wind in degrees
|
||||
private float m_varStrength = 5.0f; // Max Strength Variance
|
||||
private float m_varDirection = 30.0f;// Max Direction Variance
|
||||
private float m_rateChange = 1.0f; //
|
||||
private float m_rateChange = 1.0f; //
|
||||
|
||||
private Vector2 m_curPredominateWind = new Vector2();
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace OpenSim.Region.CoreModules.World.Wind.Plugins
|
||||
|
||||
public void Initialise()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -111,7 +111,7 @@ namespace OpenSim.Region.CoreModules.World.Wind.Plugins
|
||||
// Prevailing wind algorithm
|
||||
// Inspired by Kanker Greenacre
|
||||
|
||||
// TODO:
|
||||
// TODO:
|
||||
// * This should probably be based on in-world time.
|
||||
// * should probably move all these local variables to class members and constants
|
||||
double time = DateTime.Now.TimeOfDay.Seconds / 86400.0f;
|
||||
@@ -125,7 +125,7 @@ namespace OpenSim.Region.CoreModules.World.Wind.Plugins
|
||||
offset = Math.Sin(theta) * Math.Sin(theta*4) + (Math.Sin(theta*13) / 3);
|
||||
double windSpeed = m_avgStrength + (m_varStrength * offset);
|
||||
|
||||
if (windSpeed < 0)
|
||||
if (windSpeed < 0)
|
||||
windSpeed = -windSpeed;
|
||||
|
||||
m_curPredominateWind.X = (float)Math.Cos(windDir);
|
||||
@@ -157,9 +157,9 @@ namespace OpenSim.Region.CoreModules.World.Wind.Plugins
|
||||
|
||||
public string Description
|
||||
{
|
||||
get
|
||||
get
|
||||
{
|
||||
return "Provides a predominate wind direction that can change within configured variances for direction and speed.";
|
||||
return "Provides a predominate wind direction that can change within configured variances for direction and speed.";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ namespace OpenSim.Region.CoreModules
|
||||
// Register event handlers for when Avatars enter the region, and frame ticks
|
||||
m_scene.EventManager.OnFrame += WindUpdate;
|
||||
|
||||
// Register the wind module
|
||||
// Register the wind module
|
||||
m_scene.RegisterModuleInterface<IWindModule>(this);
|
||||
|
||||
// Generate initial wind values
|
||||
@@ -351,7 +351,7 @@ namespace OpenSim.Region.CoreModules
|
||||
#region IWindModule Methods
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the wind speed at the given region coordinate. This
|
||||
/// Retrieve the wind speed at the given region coordinate. This
|
||||
/// implimentation ignores Z.
|
||||
/// </summary>
|
||||
/// <param name="x">0...255</param>
|
||||
@@ -396,7 +396,7 @@ namespace OpenSim.Region.CoreModules
|
||||
|
||||
public string WindActiveModelPluginName
|
||||
{
|
||||
get
|
||||
get
|
||||
{
|
||||
if (m_activeWindPlugin != null)
|
||||
{
|
||||
@@ -429,7 +429,7 @@ namespace OpenSim.Region.CoreModules
|
||||
{
|
||||
client.SendWindData(m_dataVersion, windSpeeds);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -440,7 +440,7 @@ namespace OpenSim.Region.CoreModules
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Calculate new wind
|
||||
/// Calculate new wind
|
||||
/// returns false if no change
|
||||
/// </summary>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user