shifting from two instances of typecasting to one instance of typecasting in llTriggerSoundLimited
parent
c796f7861e
commit
f9923d4423
|
@ -5877,12 +5877,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
if (m_SoundModule != null)
|
if (m_SoundModule != null)
|
||||||
{
|
{
|
||||||
float radius1 = (float)llVecDist(llGetPos(), top_north_east);
|
double radius1 = llVecDist(llGetPos(), top_north_east);
|
||||||
float radius2 = (float)llVecDist(llGetPos(), bottom_south_west);
|
double radius2 = llVecDist(llGetPos(), bottom_south_west);
|
||||||
float 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,
|
||||||
radius, false, false);
|
(float)radius, false, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue