refactoring llTriggerSoundLimited to not use the LSL methods, since that will cause unnecessary calls to m_host.AddScriptLPS(1)

integration
SignpostMarv 2012-10-16 12:49:25 +01:00 committed by Justin Clark-Casey (justincc)
parent af9dc483e9
commit ef15711089
1 changed files with 2 additions and 2 deletions

View File

@ -5876,8 +5876,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
if (m_SoundModule != null) if (m_SoundModule != null)
{ {
double radius1 = llVecDist(llGetPos(), top_north_east); double radius1 = VecDist(m_host.GetWorldPosition(), top_north_east);
double radius2 = llVecDist(llGetPos(), bottom_south_west); double radius2 = VecDist(m_host.GetWorldPosition(), bottom_south_west);
double radius = Math.Abs(radius1 - radius2); double radius = Math.Abs(radius1 - radius2);
m_SoundModule.SendSound(m_host.UUID, m_SoundModule.SendSound(m_host.UUID,
KeyOrName(sound, AssetType.Sound), volume, true, 0, KeyOrName(sound, AssetType.Sound), volume, true, 0,