From 71404be21d7d63cc0473f9521700a28def9b0ba0 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 26 Jun 2016 10:02:56 +0100 Subject: let llPlaySound() in HUDs send sound to owner without parcel restriction --- OpenSim/Region/CoreModules/World/Sound/SoundModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/CoreModules/World/Sound') 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 if (!m_scene.TryGetScenePresence(grp.AttachedAvatar, out ssp)) return; - if (!ssp.ParcelAllowThisAvatarSounds) - return; - if (grp.HasPrivateAttachmentPoint) { ssp.ControllingClient.SendPlayAttachedSound(soundID, objectID, ownerID, (float)gain, flags); return; } + + if (!ssp.ParcelAllowThisAvatarSounds) + return; } m_scene.ForEachRootScenePresence(delegate(ScenePresence sp) -- cgit v1.1