diff options
author | Jeff Ames | 2008-05-16 01:22:11 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-16 01:22:11 +0000 |
commit | 65c5efe43b68700bad94076d4cd421160203c5de (patch) | |
tree | 589b56649ed02f4942671fd6e51c6dc43f682e0d /OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs | |
parent | Thank you very much, mjm for : (diff) | |
download | opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.zip opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.tar.gz opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.tar.bz2 opensim-SC-65c5efe43b68700bad94076d4cd421160203c5de.tar.xz |
Formatting cleanup.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs b/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs index 49946fd..fc0a579 100644 --- a/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs +++ b/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs | |||
@@ -43,14 +43,14 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes | |||
43 | double area = strength; | 43 | double area = strength; |
44 | double step = strength / 4.0; | 44 | double step = strength / 4.0; |
45 | 45 | ||
46 | // compute delta map | 46 | // compute delta map |
47 | for (x = 0; x < map.Width; x++) | 47 | for (x = 0; x < map.Width; x++) |
48 | { | 48 | { |
49 | for (y = 0; y < map.Height; y++) | 49 | for (y = 0; y < map.Height; y++) |
50 | { | 50 | { |
51 | double z = TerrainUtil.SphericalFactor(x, y, rx, ry, strength); | 51 | double z = TerrainUtil.SphericalFactor(x, y, rx, ry, strength); |
52 | 52 | ||
53 | if (z > 0) // add in non-zero amount | 53 | if (z > 0) // add in non-zero amount |
54 | { | 54 | { |
55 | double average = 0.0; | 55 | double average = 0.0; |
56 | int avgsteps = 0; | 56 | int avgsteps = 0; |
@@ -69,14 +69,14 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes | |||
69 | } | 69 | } |
70 | } | 70 | } |
71 | } | 71 | } |
72 | // blend in map | 72 | // blend in map |
73 | for (x = 0; x < map.Width; x++) | 73 | for (x = 0; x < map.Width; x++) |
74 | { | 74 | { |
75 | for (y = 0; y < map.Height; y++) | 75 | for (y = 0; y < map.Height; y++) |
76 | { | 76 | { |
77 | double z = TerrainUtil.SphericalFactor(x, y, rx, ry, strength); | 77 | double z = TerrainUtil.SphericalFactor(x, y, rx, ry, strength); |
78 | 78 | ||
79 | if (z > 0) // add in non-zero amount | 79 | if (z > 0) // add in non-zero amount |
80 | { | 80 | { |
81 | double da = z; | 81 | double da = z; |
82 | double a = (map[x, y] - tweak[x, y]) * da; | 82 | double a = (map[x, y] - tweak[x, y]) * da; |