aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-03-14 21:46:29 +0000
committerJustin Clark-Casey (justincc)2013-03-14 21:46:29 +0000
commitad9bd3fe93e3d48b17ca28b3e036fe39991f2203 (patch)
treee7571ad01e61b20c95258d5d15c2391b0cc19c8c /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
parentMake llGetObjectDetails() return the correct world rotation for a sitting avatar (diff)
downloadopensim-SC-ad9bd3fe93e3d48b17ca28b3e036fe39991f2203.zip
opensim-SC-ad9bd3fe93e3d48b17ca28b3e036fe39991f2203.tar.gz
opensim-SC-ad9bd3fe93e3d48b17ca28b3e036fe39991f2203.tar.bz2
opensim-SC-ad9bd3fe93e3d48b17ca28b3e036fe39991f2203.tar.xz
Fix sensors, llGetRootRotation(), llGet*Param() and other functions to use the world rotation if the avatar to which they are attached is sitting
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-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 47f8758..d88e416 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2174,7 +2174,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2174 if ((avatar.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0) 2174 if ((avatar.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0)
2175 q = avatar.CameraRotation; // Mouselook 2175 q = avatar.CameraRotation; // Mouselook
2176 else 2176 else
2177 q = avatar.Rotation; // Currently infrequently updated so may be inaccurate 2177 q = avatar.GetWorldRotation(); // Currently infrequently updated so may be inaccurate
2178 } 2178 }
2179 else 2179 else
2180 q = part.ParentGroup.GroupRotation; // Likely never get here but just in case 2180 q = part.ParentGroup.GroupRotation; // Likely never get here but just in case
@@ -7831,7 +7831,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7831 if ((avatar.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0) 7831 if ((avatar.AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK) != 0)
7832 q = avatar.CameraRotation; // Mouselook 7832 q = avatar.CameraRotation; // Mouselook
7833 else 7833 else
7834 q = avatar.Rotation; // Currently infrequently updated so may be inaccurate 7834 q = avatar.GetWorldRotation(); // Currently infrequently updated so may be inaccurate
7835 else 7835 else
7836 q = m_host.ParentGroup.GroupRotation; // Likely never get here but just in case 7836 q = m_host.ParentGroup.GroupRotation; // Likely never get here but just in case
7837 } 7837 }