From 207dd6da482719b688dc43b78e455cd3c14276e5 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 29 Aug 2015 05:28:13 +0100 Subject: [PATCH] fix some effects ranges --- .../CoreModules/World/Terrain/FloodBrushes/FlattenArea.cs | 2 +- .../CoreModules/World/Terrain/PaintBrushes/FlattenSphere.cs | 4 ++-- .../CoreModules/World/Terrain/PaintBrushes/RevertSphere.cs | 2 +- .../CoreModules/World/Terrain/PaintBrushes/SmoothSphere.cs | 4 ++-- .../CoreModules/World/Terrain/PaintBrushes/WeatherSphere.cs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/FlattenArea.cs b/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/FlattenArea.cs index 8bdf55fb94..0c4171e92a 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/FlattenArea.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/FloodBrushes/FlattenArea.cs @@ -58,7 +58,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain.FloodBrushes for (x = startX; x <= endX; x++) { - for (y = startY; y < endY; y++) + for (y = startY; y <= endY; y++) { if (fillArea[x, y]) map[x, y] = (map[x, y] * (1.0 - str)) + (avg * str); diff --git a/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/FlattenSphere.cs b/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/FlattenSphere.cs index 34bed8b228..8937f63a33 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/FlattenSphere.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/FlattenSphere.cs @@ -43,9 +43,9 @@ namespace OpenSim.Region.CoreModules.World.Terrain.PaintBrushes int x, y; // blend in map - 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 (!mask[x,y]) continue; diff --git a/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/RevertSphere.cs b/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/RevertSphere.cs index 2fb05d1d9a..efc5324a67 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/RevertSphere.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/RevertSphere.cs @@ -55,7 +55,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain.PaintBrushes int x,y; for (x = startX; x <= endX; x++) { - for (y = startY; y < endY; y++) + for (y = startY; y <= endY; y++) { if (!mask[x, y]) continue; diff --git a/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/SmoothSphere.cs b/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/SmoothSphere.cs index cc618fd6d7..65dd0a6ec2 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/SmoothSphere.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/SmoothSphere.cs @@ -50,7 +50,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain.PaintBrushes // compute delta map for (x = startX; x <= endX; x++) { - for (y = startY; y < endY; y++) + for (y = startY; y <= endY; y++) { if (!mask[x, y]) continue; @@ -79,7 +79,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain.PaintBrushes // blend in map for (x = startX; x <= endX; x++) { - for (y = startY; y < endY; y++) + for (y = startY; y <= endY; y++) { if (!mask[x, y]) continue; diff --git a/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/WeatherSphere.cs b/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/WeatherSphere.cs index c9facc7a35..f52fe07bb1 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/WeatherSphere.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/PaintBrushes/WeatherSphere.cs @@ -157,7 +157,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain.PaintBrushes for (x = startX; x <= endX; x++) { - for (y = startY; y < endY; y++) + for (y = startY; y <= endY; y++) { if (!mask[x,y]) continue;