From 337da2a7a3e330d465aef421e51729bb3df03244 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Sat, 1 Nov 2008 07:21:40 +0000 Subject: Update svn properties, minor formatting cleanup. --- .../Shared/Api/Implementation/LSL_Api.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 499273c..a92500c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -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); } -- cgit v1.1