Fix minimap issues. This addresses mantis #228.
parent
ca2a4bbded
commit
603b3a1606
|
@ -228,29 +228,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (sp.IsChildAgent)
|
if (sp.IsChildAgent)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (sp.ParentID != 0)
|
|
||||||
{
|
|
||||||
// sitting avatar
|
|
||||||
SceneObjectPart sop = m_parentScene.GetSceneObjectPart(sp.ParentID);
|
|
||||||
if (sop != null)
|
|
||||||
{
|
|
||||||
coarseLocations.Add(sop.AbsolutePosition + sp.AbsolutePosition);
|
|
||||||
avatarUUIDs.Add(sp.UUID);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// we can't find the parent.. ! arg!
|
|
||||||
coarseLocations.Add(sp.AbsolutePosition);
|
coarseLocations.Add(sp.AbsolutePosition);
|
||||||
avatarUUIDs.Add(sp.UUID);
|
avatarUUIDs.Add(sp.UUID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
coarseLocations.Add(sp.AbsolutePosition);
|
|
||||||
avatarUUIDs.Add(sp.UUID);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue