aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
diff options
context:
space:
mode:
authorMelanie2012-05-17 13:34:47 +0100
committerMelanie2012-05-17 13:34:47 +0100
commitb4cd8b491bc53baa57da3b9efb5ab8b8287ddfe1 (patch)
treeb764f0c0a7b7b6f6caeb4b3eddf1441d4f79ed17 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
parentMerge branch 'master' into careminster (diff)
parentudp transfer: make number packets estimation coerent with number actually sen... (diff)
downloadopensim-SC-b4cd8b491bc53baa57da3b9efb5ab8b8287ddfe1.zip
opensim-SC-b4cd8b491bc53baa57da3b9efb5ab8b8287ddfe1.tar.gz
opensim-SC-b4cd8b491bc53baa57da3b9efb5ab8b8287ddfe1.tar.bz2
opensim-SC-b4cd8b491bc53baa57da3b9efb5ab8b8287ddfe1.tar.xz
Merge branch 'avination' into careminster
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index c7e59ac..2533002 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4627,7 +4627,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4627 public void llCollisionSound(string impact_sound, double impact_volume) 4627 public void llCollisionSound(string impact_sound, double impact_volume)
4628 { 4628 {
4629 m_host.AddScriptLPS(1); 4629 m_host.AddScriptLPS(1);
4630 4630
4631 if(impact_sound == "")
4632 {
4633 m_host.CollisionSoundVolume = (float)impact_volume;
4634 m_host.CollisionSound = m_host.invalidCollisionSoundUUID;
4635 return;
4636 }
4631 // TODO: Parameter check logic required. 4637 // TODO: Parameter check logic required.
4632 UUID soundId = UUID.Zero; 4638 UUID soundId = UUID.Zero;
4633 if (!UUID.TryParse(impact_sound, out soundId)) 4639 if (!UUID.TryParse(impact_sound, out soundId))
@@ -4643,8 +4649,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4643 } 4649 }
4644 m_host.TaskInventory.LockItemsForRead(false); 4650 m_host.TaskInventory.LockItemsForRead(false);
4645 } 4651 }
4646 m_host.CollisionSound = soundId;
4647 m_host.CollisionSoundVolume = (float)impact_volume; 4652 m_host.CollisionSoundVolume = (float)impact_volume;
4653 m_host.CollisionSound = soundId;
4648 } 4654 }
4649 4655
4650 public LSL_String llGetAnimation(string id) 4656 public LSL_String llGetAnimation(string id)