refactoring llGetPos() to take advantage of implicit converter

0.7.4-extended
SignpostMarv 2012-10-16 12:48:41 +01:00 committed by Justin Clark-Casey (justincc)
parent bffdf20721
commit 3148a231db
1 changed files with 1 additions and 2 deletions

View File

@ -2062,8 +2062,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Vector llGetPos()
{
m_host.AddScriptLPS(1);
Vector3 pos = m_host.GetWorldPosition();
return new LSL_Vector(pos.X, pos.Y, pos.Z);
return m_host.GetWorldPosition();
}
public LSL_Vector llGetLocalPos()