Set collision sound type so custom sound types are recognized

avinationmerge
Melanie 2012-06-07 17:59:20 +02:00
parent e93308072e
commit 91557f18cd
1 changed files with 2 additions and 0 deletions

View File

@ -4812,6 +4812,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
m_host.CollisionSoundVolume = (float)impact_volume;
m_host.CollisionSound = m_host.invalidCollisionSoundUUID;
m_host,CollisionSoundType = 0;
return;
}
// TODO: Parameter check logic required.
@ -4831,6 +4832,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
m_host.CollisionSoundVolume = (float)impact_volume;
m_host.CollisionSound = soundId;
m_host.CollisionSoundType = 1;
}
public LSL_String llGetAnimation(string id)