aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-04-06 13:48:28 +0000
committerAdam Frisby2008-04-06 13:48:28 +0000
commit996309a6e1ee47d96d81c0bdfdd5bfc27db66efd (patch)
tree9b9208a28969785a459e30de3ce9f260beb26201 /OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs
parent* Fixed up some documentation (diff)
downloadopensim-SC-996309a6e1ee47d96d81c0bdfdd5bfc27db66efd.zip
opensim-SC-996309a6e1ee47d96d81c0bdfdd5bfc27db66efd.tar.gz
opensim-SC-996309a6e1ee47d96d81c0bdfdd5bfc27db66efd.tar.bz2
opensim-SC-996309a6e1ee47d96d81c0bdfdd5bfc27db66efd.tar.xz
* Various terrain engine fixes
* Includes patch #894 fixes for terrain load-tile * Large number of other terrain fixes and new commands included.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs13
1 files changed, 6 insertions, 7 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs b/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs
index 6e1a5d6..01f6bdf 100644
--- a/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs
+++ b/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs
@@ -121,13 +121,12 @@ namespace OpenSim.Region.Environment.Modules.Terrain
121 { 121 {
122 for (y = 0; y < Constants.RegionSize; y++) 122 for (y = 0; y < Constants.RegionSize; y++)
123 { 123 {
124 //map[x, y] = TerrainUtil.PerlinNoise2D(x, y, 3, 0.25) * 10; 124 map[x, y] = TerrainUtil.PerlinNoise2D(x, y, 3, 0.25) * 10;
125 // double spherFac = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize, Constants.RegionSize, 20); 125 double spherFac = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize / 2, Constants.RegionSize / 2, 50) * 0.01;
126 // if (map[x, y] < spherFac) 126 if (map[x, y] < spherFac)
127 // { 127 {
128 // map[x, y] = spherFac; 128 map[x, y] = spherFac;
129 // } 129 }
130 map[x, y] = 26;
131 } 130 }
132 } 131 }
133 } 132 }