Make it more unlikely that a script teleport will be caught by default region landing point.
parent
f57403909f
commit
d49a5374c3
|
@ -456,7 +456,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check Default Location (Also See ScenePresence.CompleteMovement)
|
// Check Default Location (Also See ScenePresence.CompleteMovement)
|
||||||
if (position.X == 128f && position.Y == 128f)
|
if (position.X == 128f && position.Y == 128f && position.Z == 22.5f)
|
||||||
position = sp.Scene.RegionInfo.DefaultLandingPoint;
|
position = sp.Scene.RegionInfo.DefaultLandingPoint;
|
||||||
|
|
||||||
// TODO: Get proper AVG Height
|
// TODO: Get proper AVG Height
|
||||||
|
|
|
@ -2044,7 +2044,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check Default Location (Also See EntityTransferModule.TeleportAgentWithinRegion)
|
// Check Default Location (Also See EntityTransferModule.TeleportAgentWithinRegion)
|
||||||
if (AbsolutePosition.X == 128f && AbsolutePosition.Y == 128f)
|
if (AbsolutePosition.X == 128f && AbsolutePosition.Y == 128f && AbsolutePosition.Z == 22.5f)
|
||||||
AbsolutePosition = Scene.RegionInfo.DefaultLandingPoint;
|
AbsolutePosition = Scene.RegionInfo.DefaultLandingPoint;
|
||||||
|
|
||||||
if (!MakeRootAgent(AbsolutePosition, flying, ref look))
|
if (!MakeRootAgent(AbsolutePosition, flying, ref look))
|
||||||
|
|
Loading…
Reference in New Issue