diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 58 |
1 files changed, 6 insertions, 52 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 022a90d..4c346b7 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -873,13 +873,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
873 | { | 873 | { |
874 | uint x, y; | 874 | uint x, y; |
875 | Util.RegionHandleToRegionLoc(handle, out x, out y); | 875 | Util.RegionHandleToRegionLoc(handle, out x, out y); |
876 | <<<<<<< HEAD | ||
877 | |||
878 | if (Util.IsOutsideView(DrawDistance, x, Scene.RegionInfo.RegionLocX, y, Scene.RegionInfo.RegionLocY)) | ||
879 | ======= | ||
880 | no information to check this | ||
881 | // if (Util.IsOutsideView(DrawDistance, x, Scene.RegionInfo.RegionLocX, y, Scene.RegionInfo.RegionLocY,)) | 876 | // if (Util.IsOutsideView(DrawDistance, x, Scene.RegionInfo.RegionLocX, y, Scene.RegionInfo.RegionLocY,)) |
882 | >>>>>>> avn/ubitvar | ||
883 | { | 877 | { |
884 | old.Add(handle); | 878 | old.Add(handle); |
885 | } | 879 | } |
@@ -1158,6 +1152,8 @@ no information to check this | |||
1158 | { | 1152 | { |
1159 | IsLoggingIn = false; | 1153 | IsLoggingIn = false; |
1160 | } | 1154 | } |
1155 | |||
1156 | IsChildAgent = false; | ||
1161 | } | 1157 | } |
1162 | 1158 | ||
1163 | m_log.DebugFormat("[MakeRootAgent] out lock: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 1159 | m_log.DebugFormat("[MakeRootAgent] out lock: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
@@ -1172,9 +1168,7 @@ no information to check this | |||
1172 | Grouptitle = gm.GetGroupTitle(m_uuid); | 1168 | Grouptitle = gm.GetGroupTitle(m_uuid); |
1173 | 1169 | ||
1174 | 1170 | ||
1175 | AgentCircuitData aCircuit = m_scene.AuthenticateHandler.GetAgentCircuitData(ControllingClient.CircuitCode); | 1171 | if ((m_teleportFlags & TeleportFlags.ViaHGLogin) != 0) |
1176 | uint teleportFlags = (aCircuit == null) ? 0 : aCircuit.teleportFlags; | ||
1177 | if ((teleportFlags & (uint)TeleportFlags.ViaHGLogin) != 0) | ||
1178 | { | 1172 | { |
1179 | // The avatar is arriving from another grid. This means that we may have changed the | 1173 | // The avatar is arriving from another grid. This means that we may have changed the |
1180 | // avatar's name to or from the special Hypergrid format ("First.Last @grid.example.com"). | 1174 | // avatar's name to or from the special Hypergrid format ("First.Last @grid.example.com"). |
@@ -2031,8 +2025,8 @@ no information to check this | |||
2031 | if (!IsChildAgent && openChildAgents) | 2025 | if (!IsChildAgent && openChildAgents) |
2032 | { | 2026 | { |
2033 | IFriendsModule friendsModule = m_scene.RequestModuleInterface<IFriendsModule>(); | 2027 | IFriendsModule friendsModule = m_scene.RequestModuleInterface<IFriendsModule>(); |
2034 | if (friendsModule != null) | 2028 | // if (friendsModule != null) |
2035 | friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); | 2029 | // friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); |
2036 | 2030 | ||
2037 | m_log.DebugFormat("[CompleteMovement] friendsModule: {0}ms", Util.EnvironmentTickCountSubtract(ts)); | 2031 | m_log.DebugFormat("[CompleteMovement] friendsModule: {0}ms", Util.EnvironmentTickCountSubtract(ts)); |
2038 | 2032 | ||
@@ -2329,9 +2323,7 @@ no information to check this | |||
2329 | 2323 | ||
2330 | try | 2324 | try |
2331 | { | 2325 | { |
2332 | // Don't slide against ground when crouching if camera is panned around avatar | 2326 | agent_control_v3 += Dir_Vectors[i]; |
2333 | if (Flying || DCF != Dir_ControlFlags.DIR_CONTROL_FLAG_DOWN) | ||
2334 | agent_control_v3 += Dir_Vectors[i]; | ||
2335 | //m_log.DebugFormat("[Motion]: {0}, {1}",i, dirVectors[i]); | 2327 | //m_log.DebugFormat("[Motion]: {0}, {1}",i, dirVectors[i]); |
2336 | } | 2328 | } |
2337 | catch (IndexOutOfRangeException) | 2329 | catch (IndexOutOfRangeException) |
@@ -2751,44 +2743,6 @@ no information to check this | |||
2751 | SceneManager.Instance.TryGetScene(target_region.RegionID, out targetScene); | 2743 | SceneManager.Instance.TryGetScene(target_region.RegionID, out targetScene); |
2752 | } | 2744 | } |
2753 | 2745 | ||
2754 | |||
2755 | |||
2756 | |||
2757 | |||
2758 | |||
2759 | |||
2760 | |||
2761 | |||
2762 | |||
2763 | |||
2764 | |||
2765 | |||
2766 | |||
2767 | |||
2768 | |||
2769 | |||
2770 | |||
2771 | |||
2772 | |||
2773 | |||
2774 | |||
2775 | |||
2776 | |||
2777 | |||
2778 | |||
2779 | |||
2780 | |||
2781 | |||
2782 | |||
2783 | |||
2784 | |||
2785 | |||
2786 | |||
2787 | |||
2788 | |||
2789 | |||
2790 | |||
2791 | |||
2792 | float terrainHeight = (float)targetScene.Heightmap[(int)(pos.X % regionSize.X), (int)(pos.Y % regionSize.Y)]; | 2746 | float terrainHeight = (float)targetScene.Heightmap[(int)(pos.X % regionSize.X), (int)(pos.Y % regionSize.Y)]; |
2793 | // dont try to land underground | 2747 | // dont try to land underground |
2794 | terrainHeight += Appearance.AvatarHeight / 2; | 2748 | terrainHeight += Appearance.AvatarHeight / 2; |