zero out SP velocity before calling SP.Teleport(), as the client expects (though this is also effectively done by physics at the moment)

0.7.3-extended
Justin Clark-Casey (justincc) 2012-04-25 03:47:26 +01:00
parent b3307850ab
commit 675c208c7e
1 changed files with 1 additions and 0 deletions

View File

@ -210,6 +210,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
sp.ControllingClient.SendTeleportStart(teleportFlags);
sp.ControllingClient.SendLocalTeleport(position, lookAt, teleportFlags);
sp.Velocity = Vector3.Zero;
sp.Teleport(position);
foreach (SceneObjectGroup grp in sp.GetAttachments())