From 2619005f467972c22a0ddcd25344546ec61ce791 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 4 Aug 2016 17:17:16 +0100 Subject: [PATCH] also disable vehicle hover if its hover is set to zero --- OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs index d8a2272cd3..be7cfea304 100644 --- a/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODEDynamics.cs @@ -828,7 +828,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde } // hover - if (m_VhoverTimescale < 300 && rootPrim.prim_geom != IntPtr.Zero) + if (m_VhoverTimescale < 300 && m_VhoverHeight >0 && rootPrim.prim_geom != IntPtr.Zero) { // d.Vector3 pos = d.BodyGetPosition(Body); d.Vector3 pos = d.GeomGetPosition(rootPrim.prim_geom);