mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
refactoring llTriggerSoundLimited to not use the LSL methods, since that will cause unnecessary calls to m_host.AddScriptLPS(1)
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
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,
|
||||
|
||||
Reference in New Issue
Block a user