* llGround causes Array out of bounds exception in KanEd#11 script 
* Thanks Y. Nitta!
0.6.0-stable
Justin Clarke Casey 2008-09-16 17:41:01 +00:00
parent f437c4d8c9
commit 6b0097039a
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
}