From 6b0097039ad2f0c57ade46b8446d31a934b7170d Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 16 Sep 2008 17:41:01 +0000 Subject: * Apply http://opensimulator.org/mantis/view.php?id=2202 * llGround causes Array out of bounds exception in KanEd#11 script * Thanks Y. Nitta! --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 4 ++-- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 44033c1..76b88bc 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -960,8 +960,8 @@ namespace OpenSim.Region.ScriptEngine.Common public double llGround(LSL_Types.Vector3 offset) { m_host.AddScriptLPS(1); - int x = (int)(m_host.AbsolutePosition.X + offset.x); - int y = (int)(m_host.AbsolutePosition.Y + offset.y); + int x = (int)(m_host.OffsetPosition.X + offset.x); + int y = (int)(m_host.OffsetPosition.Y + offset.y); return World.GetLandHeight(x, y); } diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a4fd984..d5fc9a6 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -769,8 +769,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public LSL_Types.LSLFloat llGround(LSL_Types.Vector3 offset) { m_host.AddScriptLPS(1); - int x = (int)(m_host.AbsolutePosition.X + offset.x); - int y = (int)(m_host.AbsolutePosition.Y + offset.y); + int x = (int)(m_host.OffsetPosition.X + offset.x); + int y = (int)(m_host.OffsetPosition.Y + offset.y); return World.GetLandHeight(x, y); } -- cgit v1.1