only call move target code in SP.HandleAgentUpdate() if we're actually in the process of moving to a position
parent
7b2b47530e
commit
831f933ce6
|
@ -1484,17 +1484,20 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the user has pressed a key then we want to cancel any move to target.
|
if (m_moveToPositionInProgress)
|
||||||
if (DCFlagKeyPressed && m_moveToPositionInProgress)
|
|
||||||
{
|
{
|
||||||
ResetMoveToTarget();
|
// If the user has pressed a key then we want to cancel any move to target.
|
||||||
update_movementflag = true;
|
if (DCFlagKeyPressed)
|
||||||
}
|
{
|
||||||
else
|
ResetMoveToTarget();
|
||||||
{
|
|
||||||
if (HandleMoveToTargetUpdate(
|
|
||||||
ref agent_control_v3, bodyRotation, bAllowUpdateMoveToPosition))
|
|
||||||
update_movementflag = true;
|
update_movementflag = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (HandleMoveToTargetUpdate(
|
||||||
|
ref agent_control_v3, bodyRotation, bAllowUpdateMoveToPosition))
|
||||||
|
update_movementflag = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue