* Minor tweak to TerrainChannel

* Minor tweak to Permissions/PermissionsModule.cs
0.6.0-stable
Adam Frisby 2008-05-09 03:19:20 +00:00
parent 6bb4ab0563
commit 9f1c033757
2 changed files with 8 additions and 7 deletions

View File

@ -131,7 +131,7 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
return false;
}
public bool IsEstateManager(LLUUID user)
protected bool IsEstateManager(LLUUID user)
{
if (m_bypassPermissions)
{

View File

@ -49,12 +49,13 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
int y;
for (y = 0; y < Constants.RegionSize; y++)
{
map[x, y] = TerrainUtil.PerlinNoise2D(x, y, 3, 0.25) * 10;
double spherFac = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize / 2.0, Constants.RegionSize / 2.0, 50) * 0.01;
if (map[x, y] < spherFac)
{
map[x, y] = spherFac;
}
map[x, y] = TerrainUtil.PerlinNoise2D(x, y, 2, 0.125) * 10;
double spherFacA = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize / 2.0, Constants.RegionSize / 2.0, 50) * 0.01;
double spherFacB = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize / 2.0, Constants.RegionSize / 2.0, 100) * 0.001;
if (map[x, y] < spherFacA)
map[x, y] = spherFacA;
if (map[x, y] < spherFacB)
map[x, y] = spherFacB;
}
}
}