aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorSignpostMarv2012-10-16 13:11:17 +0100
committerJustin Clark-Casey (justincc)2012-10-29 23:39:01 +0000
commita9999a9676d46669150343e4cdbf65428326a91d (patch)
tree24ef3fe7e99da2761d60fff37864aa22a81b3a9b /OpenSim/Region/ScriptEngine
parentfixing poorly-formatted xml doc string for Util.IsInsideBox (diff)
downloadopensim-SC-a9999a9676d46669150343e4cdbf65428326a91d.zip
opensim-SC-a9999a9676d46669150343e4cdbf65428326a91d.tar.gz
opensim-SC-a9999a9676d46669150343e4cdbf65428326a91d.tar.bz2
opensim-SC-a9999a9676d46669150343e4cdbf65428326a91d.tar.xz
Refactoring llTriggerSoundLimited with a new method on ISoundModule, as the LL Wiki spec for llTriggerSoundLimited states an axis-aligned bounding box, not radial constraint
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