aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs2
-rw-r--r--OpenSim/Region/CoreModules/World/Sound/SoundModule.cs5
2 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index cd687aa..437f772 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -5971,7 +5971,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5971 5971
5972 #endregion PrimFlags 5972 #endregion PrimFlags
5973 5973
5974 if (part.Sound != UUID.Zero) 5974 if (part.Sound != UUID.Zero || part.SoundFlags != 0)
5975 { 5975 {
5976 update.Sound = part.Sound; 5976 update.Sound = part.Sound;
5977 update.OwnerID = part.OwnerID; 5977 update.OwnerID = part.OwnerID;
diff --git a/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs b/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs
index 2b7db18..662e3fe 100644
--- a/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs
+++ b/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs
@@ -131,6 +131,8 @@ namespace OpenSim.Region.CoreModules.World.Sound
131 if (!m_scene.TryGetSceneObjectPart(objectID, out part)) 131 if (!m_scene.TryGetSceneObjectPart(objectID, out part))
132 return; 132 return;
133 133
134 part.SoundFlags = 0;
135
134 SceneObjectGroup grp = part.ParentGroup; 136 SceneObjectGroup grp = part.ParentGroup;
135 137
136 if (radius == 0) 138 if (radius == 0)
@@ -199,6 +201,8 @@ namespace OpenSim.Region.CoreModules.World.Sound
199 } 201 }
200 } 202 }
201 203
204 part.SoundFlags = 0;
205
202 if (radius == 0) 206 if (radius == 0)
203 radius = MaxDistance; 207 radius = MaxDistance;
204 208
@@ -225,7 +229,6 @@ namespace OpenSim.Region.CoreModules.World.Sound
225 229
226 private static void StopSound(SceneObjectPart m_host) 230 private static void StopSound(SceneObjectPart m_host)
227 { 231 {
228// m_host.AdjustSoundGain(0);
229 m_host.Sound = UUID.Zero; 232 m_host.Sound = UUID.Zero;
230 m_host.SoundFlags = (byte)SoundFlags.STOP; 233 m_host.SoundFlags = (byte)SoundFlags.STOP;
231 m_host.SoundRadius = 0; 234 m_host.SoundRadius = 0;