aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-03-14 22:14:32 +0000
committerJustin Clark-Casey (justincc)2013-03-14 22:14:32 +0000
commit7b85279dbaf3e73ed45ecafe6a373565643e9a9e (patch)
tree76c87b1e7cf1ebe48f58cbf2d011ccc3b9ae7bd9 /OpenSim
parentFix a minor race condition in llInstantMessage() where slightly wrong origin ... (diff)
downloadopensim-SC_OLD-7b85279dbaf3e73ed45ecafe6a373565643e9a9e.zip
opensim-SC_OLD-7b85279dbaf3e73ed45ecafe6a373565643e9a9e.tar.gz
opensim-SC_OLD-7b85279dbaf3e73ed45ecafe6a373565643e9a9e.tar.bz2
opensim-SC_OLD-7b85279dbaf3e73ed45ecafe6a373565643e9a9e.tar.xz
refactor: Use LSL_Vector(Vector3) constructor in llGetCenterOfMass()
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
1 files changed, 2 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 267dc96..aca0132 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4877,8 +4877,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4877 public LSL_Vector llGetCenterOfMass() 4877 public LSL_Vector llGetCenterOfMass()
4878 { 4878 {
4879 m_host.AddScriptLPS(1); 4879 m_host.AddScriptLPS(1);
4880 Vector3 center = m_host.GetCenterOfMass(); 4880
4881 return new LSL_Vector(center.X,center.Y,center.Z); 4881 return new LSL_Vector(m_host.GetCenterOfMass());
4882 } 4882 }
4883 4883
4884 public LSL_List llListSort(LSL_List src, int stride, int ascending) 4884 public LSL_List llListSort(LSL_List src, int stride, int ascending)