* Fix for Smooth Area Flood Brush, now doesn't flood the entire sim.

0.6.0-stable
Adam Frisby 2008-03-12 13:03:44 +00:00
parent 1277f68f43
commit d626125825
2 changed files with 4 additions and 1 deletions

View File

@ -78,6 +78,9 @@ namespace OpenSim.Region.Environment.Modules.Terrain.FloodBrushes
{ {
for (y = 0; y < map.Height; y++) for (y = 0; y < map.Height; y++)
{ {
if (!fillArea[x, y])
continue;
double average = 0.0; double average = 0.0;
int avgsteps = 0; int avgsteps = 0;

View File

@ -414,7 +414,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain
fillArea.Initialize(); fillArea.Initialize();
int x, y; int x, y;
for (x = 0; x < m_channel.Width; x++) for (x = 0; x < m_channel.Width; x++)
{ {
for (y = 0; y < m_channel.Height; y++) for (y = 0; y < m_channel.Height; y++)