Minor formatting cleanup.
parent
03e3f88059
commit
eee31c6f28
|
@ -42,7 +42,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes
|
||||||
|
|
||||||
double sum = 0.0;
|
double sum = 0.0;
|
||||||
double step2 = 0.0;
|
double step2 = 0.0;
|
||||||
duration = 0.009; //MCP Should be read from ini file
|
duration = 0.009; //MCP Should be read from ini file
|
||||||
|
|
||||||
|
|
||||||
// compute delta map
|
// compute delta map
|
||||||
|
|
|
@ -44,7 +44,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes
|
||||||
public void PaintEffect(ITerrainChannel map, double rx, double ry, double strength, double duration)
|
public void PaintEffect(ITerrainChannel map, double rx, double ry, double strength, double duration)
|
||||||
{
|
{
|
||||||
strength = TerrainUtil.MetersToSphericalStrength(strength);
|
strength = TerrainUtil.MetersToSphericalStrength(strength);
|
||||||
duration = 0.03; //MCP Should be read from ini file
|
duration = 0.03; //MCP Should be read from ini file
|
||||||
|
|
||||||
if (duration > 1.0)
|
if (duration > 1.0)
|
||||||
duration = 1.0;
|
duration = 1.0;
|
||||||
|
|
|
@ -190,7 +190,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
if (bool.TryParse(perm, out allowed))
|
if (bool.TryParse(perm, out allowed))
|
||||||
{
|
{
|
||||||
// Boolean given
|
// Boolean given
|
||||||
if(allowed)
|
if (allowed)
|
||||||
m_FunctionPerms[function] = null; // a null value is all
|
m_FunctionPerms[function] = null; // a null value is all
|
||||||
else
|
else
|
||||||
m_FunctionPerms[function] = new List<UUID>(); // Empty list = none
|
m_FunctionPerms[function] = new List<UUID>(); // Empty list = none
|
||||||
|
|
Loading…
Reference in New Issue