Adapt some TeleportWithMomentum calls

avinationmerge
Melanie 2012-04-25 18:36:29 +01:00
parent 916e372382
commit 88c9fdfa3a
2 changed files with 2 additions and 2 deletions

View File

@ -1771,7 +1771,7 @@ namespace OpenSim.Region.CoreModules.World.Land
Vector3 pos = m_scene.GetNearestAllowedPosition(targetAvatar, land); Vector3 pos = m_scene.GetNearestAllowedPosition(targetAvatar, land);
targetAvatar.TeleportWithMomentum(pos); targetAvatar.TeleportWithMomentum(pos, null);
targetAvatar.ControllingClient.SendAlertMessage("You have been ejected by " + parcelManager.Firstname + " " + parcelManager.Lastname); targetAvatar.ControllingClient.SendAlertMessage("You have been ejected by " + parcelManager.Firstname + " " + parcelManager.Lastname);
parcelManager.ControllingClient.SendAlertMessage("Avatar Ejected."); parcelManager.ControllingClient.SendAlertMessage("Avatar Ejected.");

View File

@ -6115,7 +6115,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (m_host.OwnerID == land.LandData.OwnerID) if (m_host.OwnerID == land.LandData.OwnerID)
{ {
Vector3 pos = World.GetNearestAllowedPosition(presence, land); Vector3 pos = World.GetNearestAllowedPosition(presence, land);
presence.TeleportWithMomentum(pos); presence.TeleportWithMomentum(pos, null);
presence.ControllingClient.SendAlertMessage("You have been ejected from this land"); presence.ControllingClient.SendAlertMessage("You have been ejected from this land");
} }
} }