default colisionVolume is 0, use it only for user specified sound

avinationmerge
UbitUmarov 2012-05-17 01:36:42 +01:00
parent 7cbc54d92a
commit b743835f9e
1 changed files with 6 additions and 3 deletions

View File

@ -2661,10 +2661,13 @@ namespace OpenSim.Region.Framework.Scenes
bool IsNotVolumeDtc = !VolumeDetectActive;
if (IsNotVolumeDtc && startedColliders.Count > 0 && CollisionSoundVolume > 0.0f && CollisionSound != invalidCollisionSoundUUID)
if (IsNotVolumeDtc && startedColliders.Count > 0 && CollisionSound != invalidCollisionSoundUUID)
{
if(CollisionSound != UUID.Zero)
SendCollisionSound(CollisionSound, CollisionSoundVolume);
if (CollisionSound != UUID.Zero)
{
if (CollisionSoundVolume > 0.0f)
SendCollisionSound(CollisionSound, CollisionSoundVolume);
}
else
{
CollisionSounds.PartCollisionSound(this, startedColliders);