aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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)