Fix bug where tapping home to stop falling would stop any avatar movement other than falling again.

Addresses http://opensimulator.org/mantis/view.php?id=5839
This commit is contained in:
Justin Clark-Casey (justincc)
2012-01-07 00:17:40 +00:00
parent 679d155a39
commit c5c079f6aa
2 changed files with 10 additions and 9 deletions

View File

@@ -1274,8 +1274,8 @@ namespace OpenSim.Region.Framework.Scenes
public void HandleAgentUpdate(IClientAPI remoteClient, AgentUpdateArgs agentData)
{
// m_log.DebugFormat(
// "[SCENE PRESENCE]: In {0} received agent update from {1}",
// Scene.RegionInfo.RegionName, remoteClient.Name);
// "[SCENE PRESENCE]: In {0} received agent update from {1}, flags {2}",
// Scene.RegionInfo.RegionName, remoteClient.Name, agentData.ControlFlags);
if (IsChildAgent)
{
@@ -2312,6 +2312,8 @@ namespace OpenSim.Region.Framework.Scenes
/// <param name="vec">The vector in which to move. This is relative to the rotation argument</param>
public void AddNewMovement(Vector3 vec)
{
// m_log.DebugFormat("[SCENE PRESENCE]: Adding new movement {0} for {1}", vec, Name);
Vector3 direc = vec * Rotation;
direc.Normalize();