aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorSignpostMarv2012-10-04 11:33:21 +0100
committerJustin Clark-Casey (justincc)2012-10-29 23:38:56 +0000
commit7560010f340e9e67e0fb87d0e3863ed69bdbedf1 (patch)
tree658af08147164911fa7dcdce421ab554bceecf35 /OpenSim/Region/ScriptEngine/Shared
parentFix memory leak where removing an NPC did not remove its circuits. (diff)
downloadopensim-SC_OLD-7560010f340e9e67e0fb87d0e3863ed69bdbedf1.zip
opensim-SC_OLD-7560010f340e9e67e0fb87d0e3863ed69bdbedf1.tar.gz
opensim-SC_OLD-7560010f340e9e67e0fb87d0e3863ed69bdbedf1.tar.bz2
opensim-SC_OLD-7560010f340e9e67e0fb87d0e3863ed69bdbedf1.tar.xz
Immediately setting gain to zero as a workaround for code not stopping sound started by llPlaySound
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index fa57845..bedcd85 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2452,6 +2452,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2452 public void llStopSound() 2452 public void llStopSound()
2453 { 2453 {
2454 m_host.AddScriptLPS(1); 2454 m_host.AddScriptLPS(1);
2455 m_host.AdjustSoundGain(0);
2455 if (m_host.ParentGroup.LoopSoundSlavePrims.Contains(m_host)) 2456 if (m_host.ParentGroup.LoopSoundSlavePrims.Contains(m_host))
2456 { 2457 {
2457 if (m_host.ParentGroup.LoopSoundMasterPrim == m_host) 2458 if (m_host.ParentGroup.LoopSoundMasterPrim == m_host)