diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 7 |
1 files changed, 5 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 d83b05d..667aa93 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2536,12 +2536,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2536 | { | 2536 | { |
2537 | m_host.AddScriptLPS(1); | 2537 | m_host.AddScriptLPS(1); |
2538 | 2538 | ||
2539 | Vector3 vel; | 2539 | Vector3 vel = Vector3.Zero; |
2540 | 2540 | ||
2541 | if (m_host.ParentGroup.IsAttachment) | 2541 | if (m_host.ParentGroup.IsAttachment) |
2542 | { | 2542 | { |
2543 | ScenePresence avatar = m_host.ParentGroup.Scene.GetScenePresence(m_host.ParentGroup.AttachedAvatar); | 2543 | ScenePresence avatar = m_host.ParentGroup.Scene.GetScenePresence(m_host.ParentGroup.AttachedAvatar); |
2544 | vel = avatar.Velocity; | 2544 | if (avatar != null) |
2545 | vel = avatar.Velocity; | ||
2545 | } | 2546 | } |
2546 | else | 2547 | else |
2547 | { | 2548 | { |
@@ -4811,6 +4812,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4811 | { | 4812 | { |
4812 | m_host.CollisionSoundVolume = (float)impact_volume; | 4813 | m_host.CollisionSoundVolume = (float)impact_volume; |
4813 | m_host.CollisionSound = m_host.invalidCollisionSoundUUID; | 4814 | m_host.CollisionSound = m_host.invalidCollisionSoundUUID; |
4815 | m_host.CollisionSoundType = 0; | ||
4814 | return; | 4816 | return; |
4815 | } | 4817 | } |
4816 | // TODO: Parameter check logic required. | 4818 | // TODO: Parameter check logic required. |
@@ -4830,6 +4832,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4830 | } | 4832 | } |
4831 | m_host.CollisionSoundVolume = (float)impact_volume; | 4833 | m_host.CollisionSoundVolume = (float)impact_volume; |
4832 | m_host.CollisionSound = soundId; | 4834 | m_host.CollisionSound = soundId; |
4835 | m_host.CollisionSoundType = 1; | ||
4833 | } | 4836 | } |
4834 | 4837 | ||
4835 | public LSL_String llGetAnimation(string id) | 4838 | public LSL_String llGetAnimation(string id) |