change avatar animator on forced hover, needs more testing

This commit is contained in:
UbitUmarov
2025-03-12 18:06:31 +00:00
parent f3c348cf40
commit 65eee21661
2 changed files with 11 additions and 12 deletions

View File

@@ -1263,12 +1263,9 @@ namespace OpenSim.Region.PhysicsModule.ubOde
break;
case PIDHoverType.GroundAndWater:
if (terrainheight > m_parent_scene.WaterLevel)
targetHoverHeight += terrainheight;
else
targetHoverHeight += m_parent_scene.WaterLevel;
targetHoverHeight += terrainheight > m_parent_scene.WaterLevel ? terrainheight : m_parent_scene.WaterLevel;
break;
} // end switch (m_PIDHoverType)
}
hoverPIDActive = true;