From b16abc8166c29585cb76cc55c3bdd76e5833cb4f Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 5 Jan 2017 19:07:37 +0000 Subject: Massive tab and trailing space cleanup --- .../CoreModules/World/Wind/Plugins/ConfigurableWind.cs | 12 ++++++------ OpenSim/Region/CoreModules/World/Wind/WindModule.cs | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'OpenSim/Region/CoreModules/World/Wind') diff --git a/OpenSim/Region/CoreModules/World/Wind/Plugins/ConfigurableWind.cs b/OpenSim/Region/CoreModules/World/Wind/Plugins/ConfigurableWind.cs index 65691fe..a2b44df 100644 --- a/OpenSim/Region/CoreModules/World/Wind/Plugins/ConfigurableWind.cs +++ b/OpenSim/Region/CoreModules/World/Wind/Plugins/ConfigurableWind.cs @@ -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."; } } diff --git a/OpenSim/Region/CoreModules/World/Wind/WindModule.cs b/OpenSim/Region/CoreModules/World/Wind/WindModule.cs index 95cf57d..a1fff62 100644 --- a/OpenSim/Region/CoreModules/World/Wind/WindModule.cs +++ b/OpenSim/Region/CoreModules/World/Wind/WindModule.cs @@ -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(this); // Generate initial wind values @@ -351,7 +351,7 @@ namespace OpenSim.Region.CoreModules #region IWindModule Methods /// - /// Retrieve the wind speed at the given region coordinate. This + /// Retrieve the wind speed at the given region coordinate. This /// implimentation ignores Z. /// /// 0...255 @@ -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 } /// - /// Calculate new wind + /// Calculate new wind /// returns false if no change /// -- cgit v1.1