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/NoiseArea.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/NoiseArea.cs') diff --git a/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/NoiseArea.cs b/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/NoiseArea.cs index b6c635c..d634e8b 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/NoiseArea.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/NoiseArea.cs @@ -35,18 +35,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) { - int x; - for (x = 0; x < map.Width; x++) + int x, y; + for (x = startX; x <= endX; x++) { - int y; - for (y = 0; y < map.Height; y++) + for (y = startY; y <= endY; y++) { if (fillArea[x, y]) { double noise = TerrainUtil.PerlinNoise2D((double) x / map.Width, (double) y / map.Height, 8, 1.0); - map[x, y] += noise * strength; } } @@ -55,4 +54,4 @@ namespace OpenSim.Region.CoreModules.World.Terrain.FloodBrushes #endregion } -} \ No newline at end of file +} -- cgit v1.1