From 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 19 May 2019 21:24:15 +1000 Subject: Dump OpenSim 0.9.0.1 into it's own branch. --- .../CoreModules/World/Terrain/FloodBrushes/SmoothArea.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/SmoothArea.cs') diff --git a/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/SmoothArea.cs b/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/SmoothArea.cs index 6b07747..6c0d60d 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/SmoothArea.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/SmoothArea.cs @@ -33,16 +33,17 @@ namespace OpenSim.Region.CoreModules.World.Terrain.FloodBrushes { #region ITerrainFloodEffect Members - public void FloodEffect(ITerrainChannel map, bool[,] fillArea, double strength) + public void FloodEffect(ITerrainChannel map, bool[,] fillArea, double strength, + int startX, int endX, int startY, int endY) { double area = strength; double step = strength / 4.0; double[,] manipulate = new double[map.Width,map.Height]; int x, y; - for (x = 0; x < map.Width; x++) + for (x = startX; x <= endX; x++) { - for (y = 0; y < map.Height; y++) + for (y = startY; y <= endY; y++) { if (!fillArea[x, y]) continue; @@ -64,9 +65,9 @@ namespace OpenSim.Region.CoreModules.World.Terrain.FloodBrushes manipulate[x, y] = average / avgsteps; } } - for (x = 0; x < map.Width; x++) + for (x = startX; x <= endX; x++) { - for (y = 0; y < map.Height; y++) + for (y = startY; y <= endY; y++) { if (!fillArea[x, y]) continue; -- cgit v1.1