aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSignpostMarv2012-10-16 12:49:25 +0100
committerJustin Clark-Casey (justincc)2012-10-29 23:39:00 +0000
commitef157110897ef162c7f076d6d5f423b8cd9a8f47 (patch)
treec2ca0ec93277ee4b69347dc54042ce08c0e1f973
parentrefactoring llGetPos() to take advantage of implicit converter (diff)
downloadopensim-SC_OLD-ef157110897ef162c7f076d6d5f423b8cd9a8f47.zip
opensim-SC_OLD-ef157110897ef162c7f076d6d5f423b8cd9a8f47.tar.gz
opensim-SC_OLD-ef157110897ef162c7f076d6d5f423b8cd9a8f47.tar.bz2
opensim-SC_OLD-ef157110897ef162c7f076d6d5f423b8cd9a8f47.tar.xz
refactoring llTriggerSoundLimited to not use the LSL methods, since that will cause unnecessary calls to m_host.AddScriptLPS(1)
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 2654b5a..99b6189 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5876,8 +5876,8 @@ 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 = llVecDist(llGetPos(), top_north_east); 5879 double radius1 = VecDist(m_host.GetWorldPosition(), top_north_east);
5880 double radius2 = llVecDist(llGetPos(), bottom_south_west); 5880 double radius2 = VecDist(m_host.GetWorldPosition(), bottom_south_west);
5881 double radius = Math.Abs(radius1 - radius2); 5881 double radius = Math.Abs(radius1 - radius2);
5882 m_SoundModule.SendSound(m_host.UUID, 5882 m_SoundModule.SendSound(m_host.UUID,
5883 KeyOrName(sound, AssetType.Sound), volume, true, 0, 5883 KeyOrName(sound, AssetType.Sound), volume, true, 0,