From 961cb9cc77e2d056011f9b9d8b3baffd834b28b9 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 6 Aug 2014 00:34:09 +0100 Subject: refactor: Rename recent new Client*UpdateTolerance to Root*UpdateTolerance for better accuracy and consistency with other similar parameters --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index c7db306..e792d3f 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -3200,12 +3200,12 @@ namespace OpenSim.Region.Framework.Scenes // checks on all updates but the ramifications of this would need careful consideration. bool updateClients = IsSatOnObject && (Rotation != m_lastRotation || Velocity != m_lastVelocity || m_pos != m_lastPosition); - + if (!updateClients) updateClients - = !Rotation.ApproxEquals(m_lastRotation, Scene.ClientRotationUpdateTolerance) - || !Velocity.ApproxEquals(m_lastVelocity, Scene.ClientVelocityUpdateTolerance) - || !m_pos.ApproxEquals(m_lastPosition, Scene.ClientPositionUpdateTolerance); + = !Rotation.ApproxEquals(m_lastRotation, Scene.RootRotationUpdateTolerance) + || !Velocity.ApproxEquals(m_lastVelocity, Scene.RootVelocityUpdateTolerance) + || !m_pos.ApproxEquals(m_lastPosition, Scene.RootPositionUpdateTolerance); if (updateClients) { -- cgit v1.1