From affcdcce8b2bd59f3c7f83e38adb9e1246f7d00f Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 16 Sep 2014 21:25:06 +0100 Subject: try to send fly state on tps --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index fd1bab6..dba95c7 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -4268,10 +4268,11 @@ namespace OpenSim.Region.Framework.Scenes GodLevel = cAgent.GodLevel; SetAlwaysRun = cAgent.AlwaysRun; + bool isFlying = ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0); + Appearance = new AvatarAppearance(cAgent.Appearance); if (PhysicsActor != null) { - bool isFlying = Flying; RemoveFromPhysicalScene(); AddToPhysicalScene(isFlying); } -- cgit v1.1