Don't allow position update on sitting avatar. Don't bounds check sitting

avatars as they will be crossed by the vehicle and not individually
avinationmerge
Melanie 2011-12-04 20:16:07 +01:00
parent ec8c93aa5e
commit 19d6aa2bc9
1 changed files with 9 additions and 2 deletions

View File

@ -547,8 +547,12 @@ namespace OpenSim.Region.Framework.Scenes
}
}
// Don't update while sitting
if (ParentID == 0)
{
m_pos = value;
ParentPosition = Vector3.Zero;
}
// m_log.DebugFormat(
// "[ENTITY BASE]: In {0} set AbsolutePosition of {1} to {2}",
@ -2758,6 +2762,9 @@ namespace OpenSim.Region.Framework.Scenes
if (IsChildAgent)
return;
if (ParentID != 0)
return;
Vector3 pos2 = AbsolutePosition;
Vector3 vel = Velocity;
int neighbor = 0;