diff options
author | Justin Clark-Casey (justincc) | 2011-10-28 23:16:46 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-10-28 23:16:46 +0100 |
commit | 0fe756e42c23dabf3b754f3675597aaf6fb627c4 (patch) | |
tree | aa9ebe244f7efe03b8e8cbf80a70b6fb34a6dade /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | fetch SOP.RotationOffset once in UpdateRotation() and compare rather than fet... (diff) | |
parent | Removed use of 'is' operator and casting to find the root ScenePresence in Me... (diff) | |
download | opensim-SC-0fe756e42c23dabf3b754f3675597aaf6fb627c4.zip opensim-SC-0fe756e42c23dabf3b754f3675597aaf6fb627c4.tar.gz opensim-SC-0fe756e42c23dabf3b754f3675597aaf6fb627c4.tar.bz2 opensim-SC-0fe756e42c23dabf3b754f3675597aaf6fb627c4.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 2ff3fb7..b68cc9f 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -1454,10 +1454,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1454 | if (volume < 0) | 1454 | if (volume < 0) |
1455 | volume = 0; | 1455 | volume = 0; |
1456 | 1456 | ||
1457 | m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence sp) | 1457 | m_parentGroup.Scene.ForEachRootScenePresence(delegate(ScenePresence sp) |
1458 | { | 1458 | { |
1459 | if (!sp.IsChildAgent) | 1459 | sp.ControllingClient.SendAttachedSoundGainChange(UUID, (float)volume); |
1460 | sp.ControllingClient.SendAttachedSoundGainChange(UUID, (float)volume); | ||
1461 | }); | 1460 | }); |
1462 | } | 1461 | } |
1463 | 1462 | ||
@@ -2690,10 +2689,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
2690 | } | 2689 | } |
2691 | } | 2690 | } |
2692 | 2691 | ||
2693 | m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence sp) | 2692 | m_parentGroup.Scene.ForEachRootScenePresence(delegate(ScenePresence sp) |
2694 | { | 2693 | { |
2695 | if (sp.IsChildAgent) | ||
2696 | return; | ||
2697 | if (!(Util.GetDistanceTo(sp.AbsolutePosition, AbsolutePosition) >= 100)) | 2694 | if (!(Util.GetDistanceTo(sp.AbsolutePosition, AbsolutePosition) >= 100)) |
2698 | sp.ControllingClient.SendPreLoadSound(objectID, objectID, soundID); | 2695 | sp.ControllingClient.SendPreLoadSound(objectID, objectID, soundID); |
2699 | }); | 2696 | }); |