aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2017-08-24 01:38:04 +0100
committerUbitUmarov2017-08-24 01:38:04 +0100
commit1a7c8893ee47da7d872c06b9da0181bb4c473c14 (patch)
tree2ab6d92fc21b6d10c0a88ccd17b63b796110dade /OpenSim
parent(un)eject flag is only lowest bit, only protect active gods from freeze; do n... (diff)
downloadopensim-SC-1a7c8893ee47da7d872c06b9da0181bb4c473c14.zip
opensim-SC-1a7c8893ee47da7d872c06b9da0181bb4c473c14.tar.gz
opensim-SC-1a7c8893ee47da7d872c06b9da0181bb4c473c14.tar.bz2
opensim-SC-1a7c8893ee47da7d872c06b9da0181bb4c473c14.tar.xz
add missing file. Also in last commit comment the flag was relative to (un)freeze no t(un)eject
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs18
1 files changed, 16 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index ba3aaae..22860b1 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1619,8 +1619,8 @@ namespace OpenSim.Region.Framework.Scenes
1619 1619
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))