aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs17
1 files changed, 5 insertions, 12 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 8d40a38..16c1f16 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3942,25 +3942,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3942 { 3942 {
3943 m_host.AddScriptLPS(1); 3943 m_host.AddScriptLPS(1);
3944 3944
3945 if (m_host.PhysActor != null) 3945 PIDHoverType hoverType = PIDHoverType.Ground;
3946 if (water != 0)
3946 { 3947 {
3947 PIDHoverType hoverType = PIDHoverType.Ground; 3948 hoverType = PIDHoverType.GroundAndWater;
3948 if (water != 0)
3949 {
3950 hoverType = PIDHoverType.GroundAndWater;
3951 }
3952
3953 m_host.SetHoverHeight((float)height, hoverType, (float)tau);
3954 } 3949 }
3950 m_host.SetHoverHeight((float)height, hoverType, (float)tau);
3955 } 3951 }
3956 3952
3957 public void llStopHover() 3953 public void llStopHover()
3958 { 3954 {
3959 m_host.AddScriptLPS(1); 3955 m_host.AddScriptLPS(1);
3960 if (m_host.PhysActor != null) 3956 m_host.SetHoverHeight(0f, PIDHoverType.Ground, 0f);
3961 {
3962 m_host.SetHoverHeight(0f, PIDHoverType.Ground, 0f);
3963 }
3964 } 3957 }
3965 3958
3966 public void llMinEventDelay(double delay) 3959 public void llMinEventDelay(double delay)