From 3337ebe93c5b88a459e458b720cde055d675d8bd Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 21 Aug 2016 00:02:31 +0100 Subject: make the case llCollisionSound("",1.0) more clear its retunring to default sounds, ie like a prim that never had this funtion called. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index fc9b5d9..7931ff5 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -5120,8 +5120,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api m_host.CollisionSound = m_host.invalidCollisionSoundUUID; if(impact_volume == 0.0) m_host.CollisionSoundType = -1; // disable all sounds + else if(impact_volume == 1.0f) + m_host.CollisionSoundType = 0; // full return to default sounds else - m_host.CollisionSoundType = 2; // allow change of default sounds volume + m_host.CollisionSoundType = 2; // default sounds with volume return; } // TODO: Parameter check logic required. -- cgit v1.1