diff options
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 02e60f8..cd80eb0 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2668,15 +2668,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
2668 | { | 2668 | { |
2669 | m_perfMonMS = Util.EnvironmentTickCount(); | 2669 | m_perfMonMS = Util.EnvironmentTickCount(); |
2670 | 2670 | ||
2671 | PhysicsActor actor = m_physicsActor; | ||
2672 | Vector3 velocity = (actor != null) ? actor.Velocity : Vector3.Zero; | ||
2673 | |||
2674 | Vector3 pos = m_pos; | 2671 | Vector3 pos = m_pos; |
2675 | pos.Z += m_appearance.HipOffset; | 2672 | pos.Z += m_appearance.HipOffset; |
2676 | 2673 | ||
2677 | //m_log.DebugFormat("[SCENEPRESENCE]: TerseUpdate: Pos={0} Rot={1} Vel={2}", m_pos, m_bodyRot, m_velocity); | 2674 | //m_log.DebugFormat("[SCENEPRESENCE]: TerseUpdate: Pos={0} Rot={1} Vel={2}", m_pos, m_bodyRot, m_velocity); |
2678 | 2675 | ||
2679 | remoteClient.SendPrimUpdate(this, PrimUpdateFlags.Position | PrimUpdateFlags.Rotation | PrimUpdateFlags.Velocity | PrimUpdateFlags.Acceleration | PrimUpdateFlags.AngularVelocity); | 2676 | remoteClient.SendPrimUpdate( |
2677 | this, | ||
2678 | PrimUpdateFlags.Position | PrimUpdateFlags.Rotation | PrimUpdateFlags.Velocity | ||
2679 | | PrimUpdateFlags.Acceleration | PrimUpdateFlags.AngularVelocity); | ||
2680 | 2680 | ||
2681 | m_scene.StatsReporter.AddAgentTime(Util.EnvironmentTickCountSubtract(m_perfMonMS)); | 2681 | m_scene.StatsReporter.AddAgentTime(Util.EnvironmentTickCountSubtract(m_perfMonMS)); |
2682 | m_scene.StatsReporter.AddAgentUpdates(1); | 2682 | m_scene.StatsReporter.AddAgentUpdates(1); |