Update svn properties, minor formatting cleanup.

This commit is contained in:
Jeff Ames
2008-11-01 07:21:40 +00:00
parent 465a931c05
commit 337da2a7a3
3 changed files with 25 additions and 25 deletions

View File

@@ -938,16 +938,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
int x = (int)(pos.X + offset.x);
int y = (int)(pos.Y + offset.y);
// Clamp to valid position
if (x<0)
x = 0;
else if (x>=World.Heightmap.Width)
x = World.Heightmap.Width-1;
if (y<0)
y = 0;
else if (y>=World.Heightmap.Height)
y = World.Heightmap.Height-1;
// Clamp to valid position
if (x<0)
x = 0;
else if (x>=World.Heightmap.Width)
x = World.Heightmap.Width-1;
if (y<0)
y = 0;
else if (y>=World.Heightmap.Height)
y = World.Heightmap.Height-1;
return World.GetLandHeight(x, y);
}