When performing region cross, don't add the velocity to the new position in ETM.CrossAgentIntoNewRegionMain() since this has already been performed by SP.CheckForBorderCrossing()

mb-throttle-test
Justin Clark-Casey (justincc) 2014-11-29 00:16:23 +00:00
parent 265fe349e0
commit 39eab72d7c
1 changed files with 2 additions and 1 deletions

View File

@ -1695,7 +1695,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
{
AgentData cAgent = new AgentData();
agent.CopyTo(cAgent);
cAgent.Position = pos + agent.Velocity;
cAgent.Position = pos;
if (isFlying)
cAgent.ControlFlags |= (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY;