diff options
author | Dr Scofield | 2008-09-15 14:49:22 +0000 |
---|---|---|
committer | Dr Scofield | 2008-09-15 14:49:22 +0000 |
commit | 4d88246a3fa751af689cf66b764098f49d9df44a (patch) | |
tree | 87fabf96ace3edea3b9ff1ab4876d85dae73eb71 /OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes | |
parent | Mantis#2197. Thank you kindly, Tyre, for a patch that: (diff) | |
download | opensim-SC_OLD-4d88246a3fa751af689cf66b764098f49d9df44a.zip opensim-SC_OLD-4d88246a3fa751af689cf66b764098f49d9df44a.tar.gz opensim-SC_OLD-4d88246a3fa751af689cf66b764098f49d9df44a.tar.bz2 opensim-SC_OLD-4d88246a3fa751af689cf66b764098f49d9df44a.tar.xz |
reverting r6302
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/FlattenSphere.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/FlattenSphere.cs b/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/FlattenSphere.cs index e1d651b..7bf88f0 100644 --- a/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/FlattenSphere.cs +++ b/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/FlattenSphere.cs | |||
@@ -42,7 +42,6 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes | |||
42 | 42 | ||
43 | double sum = 0.0; | 43 | double sum = 0.0; |
44 | double step2 = 0.0; | 44 | double step2 = 0.0; |
45 | double durationFactor = 0.15; //MCP: tuned, but would be nice to come from ini file | ||
46 | 45 | ||
47 | // compute delta map | 46 | // compute delta map |
48 | for (x = 0; x < map.Width; x++) | 47 | for (x = 0; x < map.Width; x++) |
@@ -66,7 +65,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes | |||
66 | { | 65 | { |
67 | for (y = 0; y < map.Height; y++) | 66 | for (y = 0; y < map.Height; y++) |
68 | { | 67 | { |
69 | double z = TerrainUtil.SphericalFactor(x, y, rx, ry, strength) * duration * durationFactor; | 68 | double z = TerrainUtil.SphericalFactor(x, y, rx, ry, strength) * duration; |
70 | 69 | ||
71 | if (z > 0) // add in non-zero amount | 70 | if (z > 0) // add in non-zero amount |
72 | { | 71 | { |
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs b/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs index fa0389d..fc0a579 100644 --- a/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs +++ b/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/SmoothSphere.cs | |||
@@ -42,7 +42,6 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes | |||
42 | 42 | ||
43 | double area = strength; | 43 | double area = strength; |
44 | double step = strength / 4.0; | 44 | double step = strength / 4.0; |
45 | double durationFactor = 0.15; //MCP: tuned, but would be nice to come from ini file | ||
46 | 45 | ||
47 | // compute delta map | 46 | // compute delta map |
48 | for (x = 0; x < map.Width; x++) | 47 | for (x = 0; x < map.Width; x++) |
@@ -81,7 +80,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes | |||
81 | { | 80 | { |
82 | double da = z; | 81 | double da = z; |
83 | double a = (map[x, y] - tweak[x, y]) * da; | 82 | double a = (map[x, y] - tweak[x, y]) * da; |
84 | double newz = map[x, y] - (a * duration * durationFactor); | 83 | double newz = map[x, y] - (a * duration); |
85 | 84 | ||
86 | if (newz > 0.0) | 85 | if (newz > 0.0) |
87 | map[x, y] = newz; | 86 | map[x, y] = newz; |