aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs11
1 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index aeb74a5..0fa247d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4342,16 +4342,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4342 m_host.AddScriptLPS(1); 4342 m_host.AddScriptLPS(1);
4343 4343
4344 // TODO: Parameter check logic required. 4344 // TODO: Parameter check logic required.
4345 UUID soundId = UUID.Zero; 4345 m_host.CollisionSound = KeyOrName(impact_sound, AssetType.Sound);
4346 if (!UUID.TryParse(impact_sound, out soundId))
4347 {
4348 TaskInventoryItem item = m_host.Inventory.GetInventoryItem(impact_sound);
4349
4350 if (item != null && item.Type == (int)AssetType.Sound)
4351 soundId = item.AssetID;
4352 }
4353
4354 m_host.CollisionSound = soundId;
4355 m_host.CollisionSoundVolume = (float)impact_volume; 4346 m_host.CollisionSoundVolume = (float)impact_volume;
4356 } 4347 }
4357 4348