mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
let llPlaySound() in HUDs send sound to owner without parcel restriction
This commit is contained in:
@@ -145,15 +145,15 @@ namespace OpenSim.Region.CoreModules.World.Sound
|
|||||||
if (!m_scene.TryGetScenePresence(grp.AttachedAvatar, out ssp))
|
if (!m_scene.TryGetScenePresence(grp.AttachedAvatar, out ssp))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!ssp.ParcelAllowThisAvatarSounds)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (grp.HasPrivateAttachmentPoint)
|
if (grp.HasPrivateAttachmentPoint)
|
||||||
{
|
{
|
||||||
ssp.ControllingClient.SendPlayAttachedSound(soundID, objectID,
|
ssp.ControllingClient.SendPlayAttachedSound(soundID, objectID,
|
||||||
ownerID, (float)gain, flags);
|
ownerID, (float)gain, flags);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ssp.ParcelAllowThisAvatarSounds)
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_scene.ForEachRootScenePresence(delegate(ScenePresence sp)
|
m_scene.ForEachRootScenePresence(delegate(ScenePresence sp)
|
||||||
|
|||||||
Reference in New Issue
Block a user