aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 99b6189..aeb74a5 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5876,12 +5876,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5876 m_host.AddScriptLPS(1); 5876 m_host.AddScriptLPS(1);
5877 if (m_SoundModule != null) 5877 if (m_SoundModule != null)
5878 { 5878 {
5879 double radius1 = VecDist(m_host.GetWorldPosition(), top_north_east); 5879 m_SoundModule.TriggerSoundLimited(m_host.UUID,
5880 double radius2 = VecDist(m_host.GetWorldPosition(), bottom_south_west); 5880 KeyOrName(sound, AssetType.Sound), volume,
5881 double radius = Math.Abs(radius1 - radius2); 5881 bottom_south_west, top_north_east);
5882 m_SoundModule.SendSound(m_host.UUID,
5883 KeyOrName(sound, AssetType.Sound), volume, true, 0,
5884 (float)radius, false, false);
5885 } 5882 }
5886 } 5883 }
5887 5884