aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorAdam Frisby2008-03-08 01:55:34 +0000
committerAdam Frisby2008-03-08 01:55:34 +0000
commitb4c315dcece6798c6d2038c652f615557cb04453 (patch)
tree84c542ab784e13c8aaef7c4b8bc8e439ba3ff72d /OpenSim
parent* Applied patch #681 from tyre (diff)
downloadopensim-SC-b4c315dcece6798c6d2038c652f615557cb04453.zip
opensim-SC-b4c315dcece6798c6d2038c652f615557cb04453.tar.gz
opensim-SC-b4c315dcece6798c6d2038c652f615557cb04453.tar.bz2
opensim-SC-b4c315dcece6798c6d2038c652f615557cb04453.tar.xz
* Default terrain is now a little more interesting than a flat 0m plane.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs
index ed3d28a..9435e9b 100644
--- a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs
@@ -134,6 +134,17 @@ namespace OpenSim.Region.Environment.Modules.Terrain
134 { 134 {
135 map = new double[Constants.RegionSize, Constants.RegionSize]; 135 map = new double[Constants.RegionSize, Constants.RegionSize];
136 taint = new bool[Constants.RegionSize / 16, Constants.RegionSize / 16]; 136 taint = new bool[Constants.RegionSize / 16, Constants.RegionSize / 16];
137
138 int x, y;
139 for (x = 0; x < Constants.RegionSize; x++)
140 {
141 for (y = 0; y < Constants.RegionSize; y++)
142 {
143 map[x, y] = 60.0 - // 60 = Sphere Radius
144 ((x - (Constants.RegionSize / 2)) * (x - (Constants.RegionSize / 2)) +
145 (y - (Constants.RegionSize / 2)) * (y - (Constants.RegionSize / 2)));
146 }
147 }
137 } 148 }
138 149
139 public TerrainChannel(double[,] import) 150 public TerrainChannel(double[,] import)