* llGround causes Array out of bounds exception in KanEd#11 script * Thanks Y. Nitta!0.6.0-stable
parent
f437c4d8c9
commit
6b0097039a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue