aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSignpostMarv2012-10-16 12:48:41 +0100
committerJustin Clark-Casey (justincc)2012-10-29 23:39:00 +0000
commitaf9dc483e9db950ca4187a7afe186da80d2c7acf (patch)
treefba9977a6dbdc04c8d965ae519d1c95c3e74ebb4
parentshifting from two instances of typecasting to one instance of typecasting in ... (diff)
downloadopensim-SC-af9dc483e9db950ca4187a7afe186da80d2c7acf.zip
opensim-SC-af9dc483e9db950ca4187a7afe186da80d2c7acf.tar.gz
opensim-SC-af9dc483e9db950ca4187a7afe186da80d2c7acf.tar.bz2
opensim-SC-af9dc483e9db950ca4187a7afe186da80d2c7acf.tar.xz
refactoring llGetPos() to take advantage of implicit converter
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 2b6a3fd..2654b5a 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2082,8 +2082,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2082 public LSL_Vector llGetPos() 2082 public LSL_Vector llGetPos()
2083 { 2083 {
2084 m_host.AddScriptLPS(1); 2084 m_host.AddScriptLPS(1);
2085 Vector3 pos = m_host.GetWorldPosition(); 2085 return m_host.GetWorldPosition();
2086 return new LSL_Vector(pos.X, pos.Y, pos.Z);
2087 } 2086 }
2088 2087
2089 public LSL_Vector llGetLocalPos() 2088 public LSL_Vector llGetLocalPos()