diff options
author | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
commit | b16abc8166c29585cb76cc55c3bdd76e5833cb4f (patch) | |
tree | 6a34f465a74b7a3a6dc00a3d7aa8dcc25ac3e3a5 /OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs | |
parent | Make it possible to disable the bakes module in the way it is described in co... (diff) | |
download | opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.zip opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.gz opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.bz2 opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.xz |
Massive tab and trailing space cleanup
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs b/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs index 617c348..a450dd6 100644 --- a/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs +++ b/OpenSim/Region/CoreModules/World/Cloud/CloudModule.cs | |||
@@ -40,7 +40,7 @@ namespace OpenSim.Region.CoreModules.World | |||
40 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "CloudModule")] | 40 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "CloudModule")] |
41 | public class CloudModule : ICloudModule, INonSharedRegionModule | 41 | public class CloudModule : ICloudModule, INonSharedRegionModule |
42 | { | 42 | { |
43 | // private static readonly log4net.ILog m_log | 43 | // private static readonly log4net.ILog m_log |
44 | // = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 44 | // = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
45 | private uint m_frame = 0; | 45 | private uint m_frame = 0; |
46 | private int m_frameUpdateRate = 1000; | 46 | private int m_frameUpdateRate = 1000; |
@@ -163,7 +163,7 @@ namespace OpenSim.Region.CoreModules.World | |||
163 | columnRight = 0; | 163 | columnRight = 0; |
164 | columnLeft = x - 1; | 164 | columnLeft = x - 1; |
165 | } | 165 | } |
166 | else | 166 | else |
167 | { | 167 | { |
168 | columnRight = x + 1; | 168 | columnRight = x + 1; |
169 | columnLeft = x - 1; | 169 | columnLeft = x - 1; |
@@ -185,14 +185,14 @@ namespace OpenSim.Region.CoreModules.World | |||
185 | rowAbove = y + 1; | 185 | rowAbove = y + 1; |
186 | rowBelow = y - 1; | 186 | rowBelow = y - 1; |
187 | } | 187 | } |
188 | float neighborAverage = (cloudCover[rowBelow * 16 + columnLeft] + | 188 | float neighborAverage = (cloudCover[rowBelow * 16 + columnLeft] + |
189 | cloudCover[y * 16 + columnLeft] + | 189 | cloudCover[y * 16 + columnLeft] + |
190 | cloudCover[rowAbove * 16 + columnLeft] + | 190 | cloudCover[rowAbove * 16 + columnLeft] + |
191 | cloudCover[rowBelow * 16 + x] + | 191 | cloudCover[rowBelow * 16 + x] + |
192 | cloudCover[rowAbove * 16 + x] + | 192 | cloudCover[rowAbove * 16 + x] + |
193 | cloudCover[rowBelow * 16 + columnRight] + | 193 | cloudCover[rowBelow * 16 + columnRight] + |
194 | cloudCover[y * 16 + columnRight] + | 194 | cloudCover[y * 16 + columnRight] + |
195 | cloudCover[rowAbove * 16 + columnRight] + | 195 | cloudCover[rowAbove * 16 + columnRight] + |
196 | cloudCover[y * 16 + x]) / 9; | 196 | cloudCover[y * 16 + x]) / 9; |
197 | newCover[y * 16 + x] = ((neighborAverage / m_cloudDensity) + 0.175f) % 1.0f; | 197 | newCover[y * 16 + x] = ((neighborAverage / m_cloudDensity) + 0.175f) % 1.0f; |
198 | newCover[y * 16 + x] *= m_cloudDensity; | 198 | newCover[y * 16 + x] *= m_cloudDensity; |
@@ -201,7 +201,7 @@ namespace OpenSim.Region.CoreModules.World | |||
201 | Array.Copy(newCover, cloudCover, 16 * 16); | 201 | Array.Copy(newCover, cloudCover, 16 * 16); |
202 | m_dataVersion++; | 202 | m_dataVersion++; |
203 | } | 203 | } |
204 | 204 | ||
205 | private void CloudUpdate() | 205 | private void CloudUpdate() |
206 | { | 206 | { |
207 | if ((!m_ready || m_busy || m_cloudDensity == 0 || | 207 | if ((!m_ready || m_busy || m_cloudDensity == 0 || |
@@ -243,7 +243,7 @@ namespace OpenSim.Region.CoreModules.World | |||
243 | } | 243 | } |
244 | } | 244 | } |
245 | 245 | ||
246 | 246 | ||
247 | /// <summary> | 247 | /// <summary> |
248 | /// Calculate the cloud cover over the region. | 248 | /// Calculate the cloud cover over the region. |
249 | /// </summary> | 249 | /// </summary> |