shifting from two instances of typecasting to one instance of typecasting in llTriggerSoundLimited

integration
SignpostMarv 2012-10-16 12:45:30 +01:00 committed by Justin Clark-Casey (justincc)
parent c796f7861e
commit f9923d4423
1 changed files with 4 additions and 4 deletions

View File

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