mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
change a few more parcel eject code paths
This commit is contained in:
@@ -1886,7 +1886,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
if (land.LandData.LocalID == LandData.LocalID)
|
||||
{
|
||||
Vector3 pos = m_scene.GetNearestAllowedPosition(presence, land);
|
||||
presence.TeleportWithMomentum(pos, null);
|
||||
presence.TeleportOnEject(pos);
|
||||
presence.ControllingClient.SendAlertMessage("You have been ejected from this land");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1619,7 +1619,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public void TeleportWithMomentum(Vector3 pos, Vector3? v)
|
||||
{
|
||||
if(!CheckLocalTPLandingPoint(ref pos))
|
||||
if(!CheckLocalTPLandingPoint(ref pos))
|
||||
return;
|
||||
|
||||
if (ParentID != (uint)0)
|
||||
|
||||
@@ -6827,7 +6827,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (m_host.OwnerID == land.LandData.OwnerID)
|
||||
{
|
||||
Vector3 p = World.GetNearestAllowedPosition(presence, land);
|
||||
presence.TeleportWithMomentum(p, null);
|
||||
presence.TeleportOnEject(p);
|
||||
presence.ControllingClient.SendAlertMessage("You have been ejected from this land");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user