diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Terrain/PaintBrushes')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs index 4a03a17..9754a99 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs | |||
@@ -57,15 +57,10 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes | |||
57 | z *= z; | 57 | z *= z; |
58 | z -= ((x - rx) * (x - rx)) + ((y - ry) * (y - ry)); | 58 | z -= ((x - rx) * (x - rx)) + ((y - ry) * (y - ry)); |
59 | 59 | ||
60 | double noise; | 60 | double noise = TerrainUtil.PerlinNoise2D((double)x / (double)Framework.Constants.RegionSize, (double)y / (double)Framework.Constants.RegionSize, 8, 1.0); |
61 | |||
62 | lock (Util.RandomClass) | ||
63 | { | ||
64 | noise = Util.RandomClass.NextDouble(); | ||
65 | } | ||
66 | 61 | ||
67 | if (z > 0.0) | 62 | if (z > 0.0) |
68 | map[x, y] += (noise - 0.5) * z * duration; | 63 | map[x, y] += noise * z * duration; |
69 | } | 64 | } |
70 | } | 65 | } |
71 | } | 66 | } |