refactoring llTriggerSoundLimited to not use the LSL methods, since that will cause unnecessary calls to m_host.AddScriptLPS(1)
parent
af9dc483e9
commit
ef15711089
|
@ -5876,8 +5876,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
m_host.AddScriptLPS(1);
|
||||
if (m_SoundModule != null)
|
||||
{
|
||||
double radius1 = llVecDist(llGetPos(), top_north_east);
|
||||
double radius2 = llVecDist(llGetPos(), bottom_south_west);
|
||||
double radius1 = VecDist(m_host.GetWorldPosition(), top_north_east);
|
||||
double radius2 = VecDist(m_host.GetWorldPosition(), bottom_south_west);
|
||||
double radius = Math.Abs(radius1 - radius2);
|
||||
m_SoundModule.SendSound(m_host.UUID,
|
||||
KeyOrName(sound, AssetType.Sound), volume, true, 0,
|
||||
|
|
Loading…
Reference in New Issue