* Fix sitting avatar showing up properly on the minimap

0.6.0-stable
Teravus Ovares 2008-10-05 19:38:04 +00:00
parent b9e603f8d8
commit 2cc028e965
1 changed files with 18 additions and 1 deletions

View File

@ -1637,9 +1637,26 @@ namespace OpenSim.Region.Environment.Scenes
{
if (avatars[i] != this)
{
if (avatars[i].ParentID != 0)
{
// sitting avatar
SceneObjectPart sop = m_scene.GetSceneObjectPart(avatars[i].ParentID);
if (sop != null)
{
CoarseLocations.Add(sop.AbsolutePosition + avatars[i].m_pos);
}
else
{
// we can't find the parent.. ! arg!
CoarseLocations.Add(avatars[i].m_pos);
}
}
else
{
CoarseLocations.Add(avatars[i].m_pos);
}
}
}
m_controllingClient.SendCoarseLocationUpdate(CoarseLocations);