* Default terrain is now a little more interesting than a flat 0m plane.

0.6.0-stable
Adam Frisby 2008-03-08 01:55:34 +00:00
parent 7ef240e01e
commit b4c315dcec
1 changed files with 11 additions and 0 deletions

View File

@ -134,6 +134,17 @@ namespace OpenSim.Region.Environment.Modules.Terrain
{
map = new double[Constants.RegionSize, Constants.RegionSize];
taint = new bool[Constants.RegionSize / 16, Constants.RegionSize / 16];
int x, y;
for (x = 0; x < Constants.RegionSize; x++)
{
for (y = 0; y < Constants.RegionSize; y++)
{
map[x, y] = 60.0 - // 60 = Sphere Radius
((x - (Constants.RegionSize / 2)) * (x - (Constants.RegionSize / 2)) +
(y - (Constants.RegionSize / 2)) * (y - (Constants.RegionSize / 2)));
}
}
}
public TerrainChannel(double[,] import)