mirror of
https://github.com/opensim/opensim.git
synced 2026-07-15 20:15:48 +08:00
refactoring llGetPos() to take advantage of implicit converter
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
f9923d4423
commit
af9dc483e9
@@ -2082,8 +2082,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()
|
||||
|
||||
Reference in New Issue
Block a user