diff options
author | Adam Frisby | 2008-03-14 19:50:11 +0000 |
---|---|---|
committer | Adam Frisby | 2008-03-14 19:50:11 +0000 |
commit | 4746c268247e60d7479fb71d858aae0f2a329476 (patch) | |
tree | 3406b982db83c560d88b96558db997006521f037 /OpenSim/Region/Environment/Modules | |
parent | * Remove stupid bug I just introduced where delinking would only delink one p... (diff) | |
download | opensim-SC_OLD-4746c268247e60d7479fb71d858aae0f2a329476.zip opensim-SC_OLD-4746c268247e60d7479fb71d858aae0f2a329476.tar.gz opensim-SC_OLD-4746c268247e60d7479fb71d858aae0f2a329476.tar.bz2 opensim-SC_OLD-4746c268247e60d7479fb71d858aae0f2a329476.tar.xz |
* Fix for Justincc's bug report #768 - Terrain looks rather phallic.
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs b/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs index 64e8668..e644a96 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs | |||
@@ -88,9 +88,12 @@ namespace OpenSim.Region.Environment.Modules.Terrain | |||
88 | { | 88 | { |
89 | for (y = 0; y < Constants.RegionSize; y++) | 89 | for (y = 0; y < Constants.RegionSize; y++) |
90 | { | 90 | { |
91 | map[x, y] = 60.0 - // 60 = Sphere Radius | 91 | map[x, y] = TerrainUtil.PerlinNoise2D(x, y, 3, 0.25) * 10; |
92 | ((x - (Constants.RegionSize / 2)) * (x - (Constants.RegionSize / 2)) + | 92 | double spherFac = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize, Constants.RegionSize, 20); |
93 | (y - (Constants.RegionSize / 2)) * (y - (Constants.RegionSize / 2))); | 93 | if (map[x, y] < spherFac) |
94 | { | ||
95 | map[x, y] = spherFac; | ||
96 | } | ||
94 | } | 97 | } |
95 | } | 98 | } |
96 | } | 99 | } |