mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
* llGround causes Array out of bounds exception in KanEd#11 script * Thanks Y. Nitta!
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user