aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/SmoothArea.cs3
-rw-r--r--OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs2
2 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/SmoothArea.cs b/OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/SmoothArea.cs
index e7d0373..fd25a06 100644
--- a/OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/SmoothArea.cs
+++ b/OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/SmoothArea.cs
@@ -78,6 +78,9 @@ namespace OpenSim.Region.Environment.Modules.Terrain.FloodBrushes
78 { 78 {
79 for (y = 0; y < map.Height; y++) 79 for (y = 0; y < map.Height; y++)
80 { 80 {
81 if (!fillArea[x, y])
82 continue;
83
81 double average = 0.0; 84 double average = 0.0;
82 int avgsteps = 0; 85 int avgsteps = 0;
83 86
diff --git a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs
index 639257c..83c6658 100644
--- a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs
@@ -414,7 +414,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain
414 fillArea.Initialize(); 414 fillArea.Initialize();
415 415
416 int x, y; 416 int x, y;
417 417
418 for (x = 0; x < m_channel.Width; x++) 418 for (x = 0; x < m_channel.Width; x++)
419 { 419 {
420 for (y = 0; y < m_channel.Height; y++) 420 for (y = 0; y < m_channel.Height; y++)