diff options
author | SignpostMarv | 2012-10-16 13:11:17 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-29 23:39:01 +0000 |
commit | a9999a9676d46669150343e4cdbf65428326a91d (patch) | |
tree | 24ef3fe7e99da2761d60fff37864aa22a81b3a9b /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | fixing poorly-formatted xml doc string for Util.IsInsideBox (diff) | |
download | opensim-SC_OLD-a9999a9676d46669150343e4cdbf65428326a91d.zip opensim-SC_OLD-a9999a9676d46669150343e4cdbf65428326a91d.tar.gz opensim-SC_OLD-a9999a9676d46669150343e4cdbf65428326a91d.tar.bz2 opensim-SC_OLD-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 '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 9 |
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 | ||