diff options
author | UbitUmarov | 2016-06-26 10:02:56 +0100 |
---|---|---|
committer | UbitUmarov | 2016-06-26 10:02:56 +0100 |
commit | 71404be21d7d63cc0473f9521700a28def9b0ba0 (patch) | |
tree | 9c2406365bfcbea4e4181fed202bdaeb0a9b558c /OpenSim/Region/CoreModules/World/Sound | |
parent | mantis 7942: allow llTriggerSound on HUDs to send sounds to all. (diff) | |
download | opensim-SC-71404be21d7d63cc0473f9521700a28def9b0ba0.zip opensim-SC-71404be21d7d63cc0473f9521700a28def9b0ba0.tar.gz opensim-SC-71404be21d7d63cc0473f9521700a28def9b0ba0.tar.bz2 opensim-SC-71404be21d7d63cc0473f9521700a28def9b0ba0.tar.xz |
let llPlaySound() in HUDs send sound to owner without parcel restriction
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Sound')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Sound/SoundModule.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs b/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs index a8cb5cc..45f3ccf 100644 --- a/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs +++ b/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs | |||
@@ -145,15 +145,15 @@ namespace OpenSim.Region.CoreModules.World.Sound | |||
145 | if (!m_scene.TryGetScenePresence(grp.AttachedAvatar, out ssp)) | 145 | if (!m_scene.TryGetScenePresence(grp.AttachedAvatar, out ssp)) |
146 | return; | 146 | return; |
147 | 147 | ||
148 | if (!ssp.ParcelAllowThisAvatarSounds) | ||
149 | return; | ||
150 | |||
151 | if (grp.HasPrivateAttachmentPoint) | 148 | if (grp.HasPrivateAttachmentPoint) |
152 | { | 149 | { |
153 | ssp.ControllingClient.SendPlayAttachedSound(soundID, objectID, | 150 | ssp.ControllingClient.SendPlayAttachedSound(soundID, objectID, |
154 | ownerID, (float)gain, flags); | 151 | ownerID, (float)gain, flags); |
155 | return; | 152 | return; |
156 | } | 153 | } |
154 | |||
155 | if (!ssp.ParcelAllowThisAvatarSounds) | ||
156 | return; | ||
157 | } | 157 | } |
158 | 158 | ||
159 | m_scene.ForEachRootScenePresence(delegate(ScenePresence sp) | 159 | m_scene.ForEachRootScenePresence(delegate(ScenePresence sp) |