aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorJeff Ames2008-11-01 07:21:40 +0000
committerJeff Ames2008-11-01 07:21:40 +0000
commit337da2a7a3e330d465aef421e51729bb3df03244 (patch)
tree16826e3ab4fdf9c6ff449816fae0e23fb786615e /OpenSim/Region/ScriptEngine
parent* In the client stack, if the BeginReceive() throws an exception then do prin... (diff)
downloadopensim-SC_OLD-337da2a7a3e330d465aef421e51729bb3df03244.zip
opensim-SC_OLD-337da2a7a3e330d465aef421e51729bb3df03244.tar.gz
opensim-SC_OLD-337da2a7a3e330d465aef421e51729bb3df03244.tar.bz2
opensim-SC_OLD-337da2a7a3e330d465aef421e51729bb3df03244.tar.xz
Update svn properties, minor formatting cleanup.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-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 }