diff options
author | UbitUmarov | 2017-08-24 02:18:40 +0100 |
---|---|---|
committer | UbitUmarov | 2017-08-24 02:18:40 +0100 |
commit | a1aa2f1add241e08642c9d4a29c3809fbc6180aa (patch) | |
tree | c0e81f48690622fd88a83f9fbf27197e02a6fef3 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | Merge branch 'master' into httptests (diff) | |
parent | frozen avatars should not do local teleports. Possible none should not be all... (diff) | |
download | opensim-SC-a1aa2f1add241e08642c9d4a29c3809fbc6180aa.zip opensim-SC-a1aa2f1add241e08642c9d4a29c3809fbc6180aa.tar.gz opensim-SC-a1aa2f1add241e08642c9d4a29c3809fbc6180aa.tar.bz2 opensim-SC-a1aa2f1add241e08642c9d4a29c3809fbc6180aa.tar.xz |
Merge branch 'master' into httptests
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index ba3aaae..f9c7031 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1620,7 +1620,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1620 | public void TeleportWithMomentum(Vector3 pos, Vector3? v) | 1620 | public void TeleportWithMomentum(Vector3 pos, Vector3? v) |
1621 | { | 1621 | { |
1622 | if(!CheckLocalTPLandingPoint(ref pos)) | 1622 | if(!CheckLocalTPLandingPoint(ref pos)) |
1623 | return; | 1623 | return; |
1624 | 1624 | ||
1625 | if (ParentID != (uint)0) | 1625 | if (ParentID != (uint)0) |
1626 | StandUp(); | 1626 | StandUp(); |
@@ -1642,6 +1642,20 @@ namespace OpenSim.Region.Framework.Scenes | |||
1642 | SendTerseUpdateToAllClients(); | 1642 | SendTerseUpdateToAllClients(); |
1643 | } | 1643 | } |
1644 | 1644 | ||
1645 | public void TeleportOnEject(Vector3 pos) | ||
1646 | { | ||
1647 | if (ParentID != (uint)0) | ||
1648 | StandUp(); | ||
1649 | |||
1650 | bool isFlying = Flying; | ||
1651 | RemoveFromPhysicalScene(); | ||
1652 | |||
1653 | AbsolutePosition = pos; | ||
1654 | |||
1655 | AddToPhysicalScene(isFlying); | ||
1656 | SendTerseUpdateToAllClients(); | ||
1657 | } | ||
1658 | |||
1645 | public void avnLocalTeleport(Vector3 newpos, Vector3? newvel, bool rotateToVelXY) | 1659 | public void avnLocalTeleport(Vector3 newpos, Vector3? newvel, bool rotateToVelXY) |
1646 | { | 1660 | { |
1647 | if(!CheckLocalTPLandingPoint(ref newpos)) | 1661 | if(!CheckLocalTPLandingPoint(ref newpos)) |