refactoring llGetPos() to take advantage of implicit converter
parent
bffdf20721
commit
3148a231db
|
@ -2062,8 +2062,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public LSL_Vector llGetPos()
|
public LSL_Vector llGetPos()
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
Vector3 pos = m_host.GetWorldPosition();
|
return m_host.GetWorldPosition();
|
||||||
return new LSL_Vector(pos.X, pos.Y, pos.Z);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public LSL_Vector llGetLocalPos()
|
public LSL_Vector llGetLocalPos()
|
||||||
|
|
Loading…
Reference in New Issue