aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs20
1 files changed, 10 insertions, 10 deletions
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
938 int x = (int)(pos.X + offset.x); 938 int x = (int)(pos.X + offset.x);
939 int y = (int)(pos.Y + offset.y); 939 int y = (int)(pos.Y + offset.y);
940 940
941 // Clamp to valid position 941 // Clamp to valid position
942 if (x<0) 942 if (x<0)
943 x = 0; 943 x = 0;
944 else if (x>=World.Heightmap.Width) 944 else if (x>=World.Heightmap.Width)
945 x = World.Heightmap.Width-1; 945 x = World.Heightmap.Width-1;
946 if (y<0) 946 if (y<0)
947 y = 0; 947 y = 0;
948 else if (y>=World.Heightmap.Height) 948 else if (y>=World.Heightmap.Height)
949 y = World.Heightmap.Height-1; 949 y = World.Heightmap.Height-1;
950 950
951 951
952 return World.GetLandHeight(x, y); 952 return World.GetLandHeight(x, y);
953 } 953 }