aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs30
1 files changed, 24 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 915b202..e0593ed 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -81,7 +81,6 @@ namespace OpenSim.Region.Framework.Scenes
81 private bool MouseDown = false; 81 private bool MouseDown = false;
82 private SceneObjectGroup proxyObjectGroup; 82 private SceneObjectGroup proxyObjectGroup;
83 //private SceneObjectPart proxyObjectPart = null; 83 //private SceneObjectPart proxyObjectPart = null;
84
85 public Vector3 lastKnownAllowedPosition; 84 public Vector3 lastKnownAllowedPosition;
86 public bool sentMessageAboutRestrictedParcelFlyingDown; 85 public bool sentMessageAboutRestrictedParcelFlyingDown;
87 86
@@ -118,9 +117,10 @@ namespace OpenSim.Region.Framework.Scenes
118 private bool m_setAlwaysRun; 117 private bool m_setAlwaysRun;
119 118
120 private string m_movementAnimation = "DEFAULT"; 119 private string m_movementAnimation = "DEFAULT";
121 private long m_animPersistUntil; 120 private long m_animPersistUntil = 0;
122 private bool m_allowFalling = false; 121 private bool m_allowFalling = false;
123 122 private bool m_useFlySlow = false;
123 private bool m_usePreJump = false;
124 124
125 private Quaternion m_bodyRot= Quaternion.Identity; 125 private Quaternion m_bodyRot= Quaternion.Identity;
126 126
@@ -567,6 +567,7 @@ namespace OpenSim.Region.Framework.Scenes
567 567
568 private ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo) 568 private ScenePresence(IClientAPI client, Scene world, RegionInfo reginfo)
569 { 569 {
570
570 m_regionHandle = reginfo.RegionHandle; 571 m_regionHandle = reginfo.RegionHandle;
571 m_controllingClient = client; 572 m_controllingClient = client;
572 m_firstname = m_controllingClient.FirstName; 573 m_firstname = m_controllingClient.FirstName;
@@ -577,6 +578,9 @@ namespace OpenSim.Region.Framework.Scenes
577 m_regionInfo = reginfo; 578 m_regionInfo = reginfo;
578 m_localId = m_scene.AllocateLocalId(); 579 m_localId = m_scene.AllocateLocalId();
579 580
581 m_useFlySlow = m_scene.m_useFlySlow;
582 m_usePreJump = m_scene.m_usePreJump;
583
580 IGroupsModule gm = m_scene.RequestModuleInterface<IGroupsModule>(); 584 IGroupsModule gm = m_scene.RequestModuleInterface<IGroupsModule>();
581 if (gm != null) 585 if (gm != null)
582 m_grouptitle = gm.GetGroupTitle(m_uuid); 586 m_grouptitle = gm.GetGroupTitle(m_uuid);
@@ -2007,7 +2011,14 @@ namespace OpenSim.Region.Framework.Scenes
2007 } 2011 }
2008 else 2012 else
2009 { 2013 {
2010 return "FLYSLOW"; 2014 if (m_useFlySlow == false)
2015 {
2016 return "FLY";
2017 }
2018 else
2019 {
2020 return "FLYSLOW";
2021 }
2011 } 2022 }
2012 } 2023 }
2013 else 2024 else
@@ -2152,8 +2163,15 @@ namespace OpenSim.Region.Framework.Scenes
2152 { 2163 {
2153 m_movementAnimation = movementAnimation; 2164 m_movementAnimation = movementAnimation;
2154 } 2165 }
2155 2166 if (movementAnimation == "PREJUMP" && m_usePreJump == false)
2156 TrySetMovementAnimation(movementAnimation); 2167 {
2168 //This was the previous behavior before PREJUMP
2169 TrySetMovementAnimation("JUMP");
2170 }
2171 else
2172 {
2173 TrySetMovementAnimation(movementAnimation);
2174 }
2157 } 2175 }
2158 2176
2159 /// <summary> 2177 /// <summary>