From 4a2e6db3447ee5b4f74b9dae79702ed18d6de5e3 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 30 Sep 2015 17:34:25 +0100 Subject: add high level code suport for SetHoverHeight() called from a attachment, so in future physics engines can also suport it --- .../ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') 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 { m_host.AddScriptLPS(1); - if (m_host.PhysActor != null) + PIDHoverType hoverType = PIDHoverType.Ground; + if (water != 0) { - PIDHoverType hoverType = PIDHoverType.Ground; - if (water != 0) - { - hoverType = PIDHoverType.GroundAndWater; - } - - m_host.SetHoverHeight((float)height, hoverType, (float)tau); + hoverType = PIDHoverType.GroundAndWater; } + m_host.SetHoverHeight((float)height, hoverType, (float)tau); } public void llStopHover() { m_host.AddScriptLPS(1); - if (m_host.PhysActor != null) - { - m_host.SetHoverHeight(0f, PIDHoverType.Ground, 0f); - } + m_host.SetHoverHeight(0f, PIDHoverType.Ground, 0f); } public void llMinEventDelay(double delay) -- cgit v1.1