From 337832ecbeaaa00e4945dd94590e80ca2714393b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 19 May 2020 17:01:32 +0100 Subject: [PATCH] mantis 8250: if flying, stay flying --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index a88c8c88c1..142422bc03 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -3215,11 +3215,13 @@ namespace OpenSim.Region.Framework.Scenes if(terrainHeight > pos.Z) pos.Z = terrainHeight; -// m_log.DebugFormat( -// "[SCENE PRESENCE]: Avatar {0} set move to target {1} (terrain height {2}) in {3}", -// Name, pos, terrainHeight, m_scene.RegionInfo.RegionName); + // m_log.DebugFormat( + // "[SCENE PRESENCE]: Avatar {0} set move to target {1} (terrain height {2}) in {3}", + // Name, pos, terrainHeight, m_scene.RegionInfo.RegionName); - bool shouldfly = noFly ? false : (Flying || (pos.Z > terrainHeight + Appearance.AvatarHeight)); + bool shouldfly = true;; + if (!Flying) + shouldfly = noFly ? false : (pos.Z > terrainHeight + Appearance.AvatarHeight); Vector3 localVectorToTarget3D = pos - AbsolutePosition;