aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-03-09 02:50:57 +0000
committerJustin Clark-Casey (justincc)2012-03-09 02:50:57 +0000
commit06dda14505743bde237362b0e469d16548922f33 (patch)
tree0cab738927e0eb65fe8fea9ccd736a6d9329e432 /OpenSim/Region/Framework/Scenes
parentGet rid of unnecessary ParentID == 0 check on SP.Get_AbsolutePosition since t... (diff)
downloadopensim-SC-06dda14505743bde237362b0e469d16548922f33.zip
opensim-SC-06dda14505743bde237362b0e469d16548922f33.tar.gz
opensim-SC-06dda14505743bde237362b0e469d16548922f33.tar.bz2
opensim-SC-06dda14505743bde237362b0e469d16548922f33.tar.xz
Simplify minimap coarse location code by just reference SP.AbsolutePosition
This is rather than checking whether the avatar is sitting and doing its own calculation.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index dd0ca43..bc3400a 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -215,11 +215,7 @@ namespace OpenSim.Region.Framework.Scenes
215 if (sp.IsChildAgent) 215 if (sp.IsChildAgent)
216 continue; 216 continue;
217 217
218 SceneObjectPart sitPart = sp.ParentPart; 218 coarseLocations.Add(sp.AbsolutePosition);
219 if (sitPart != null)
220 coarseLocations.Add(sitPart.AbsolutePosition + sp.OffsetPosition);
221 else
222 coarseLocations.Add(sp.AbsolutePosition);
223 219
224 avatarUUIDs.Add(sp.UUID); 220 avatarUUIDs.Add(sp.UUID);
225 } 221 }