aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorSignpostMarv2012-10-16 12:45:30 +0100
committerJustin Clark-Casey (justincc)2012-10-29 23:39:00 +0000
commitf9923d4423f8f9dcf09a12e702737d2030a26d4a (patch)
tree5c291c1ae00aea15aa5d8f1b9129ff79b47628ae /OpenSim/Region/ScriptEngine
parent80-character width terminal formatting of recent commits to llPlaySound, llPl... (diff)
downloadopensim-SC_OLD-f9923d4423f8f9dcf09a12e702737d2030a26d4a.zip
opensim-SC_OLD-f9923d4423f8f9dcf09a12e702737d2030a26d4a.tar.gz
opensim-SC_OLD-f9923d4423f8f9dcf09a12e702737d2030a26d4a.tar.bz2
opensim-SC_OLD-f9923d4423f8f9dcf09a12e702737d2030a26d4a.tar.xz
shifting from two instances of typecasting to one instance of typecasting in llTriggerSoundLimited
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 610cb14..2b6a3fd 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5877,12 +5877,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5877 m_host.AddScriptLPS(1); 5877 m_host.AddScriptLPS(1);
5878 if (m_SoundModule != null) 5878 if (m_SoundModule != null)
5879 { 5879 {
5880 float radius1 = (float)llVecDist(llGetPos(), top_north_east); 5880 double radius1 = llVecDist(llGetPos(), top_north_east);
5881 float radius2 = (float)llVecDist(llGetPos(), bottom_south_west); 5881 double radius2 = llVecDist(llGetPos(), bottom_south_west);
5882 float radius = Math.Abs(radius1 - radius2); 5882 double radius = Math.Abs(radius1 - radius2);
5883 m_SoundModule.SendSound(m_host.UUID, 5883 m_SoundModule.SendSound(m_host.UUID,
5884 KeyOrName(sound, AssetType.Sound), volume, true, 0, 5884 KeyOrName(sound, AssetType.Sound), volume, true, 0,
5885 radius, false, false); 5885 (float)radius, false, false);
5886 } 5886 }
5887 } 5887 }
5888 5888