diff options
author | AliciaRaven | 2016-12-10 18:03:05 +0000 |
---|---|---|
committer | AliciaRaven | 2016-12-10 18:03:05 +0000 |
commit | d49a5374c37967110a8bf11844893f62951878ee (patch) | |
tree | c02cadf9613bbe4c33e042ef77141567777d9b65 /OpenSim/Region | |
parent | do not try xbakes on HG (diff) | |
download | opensim-SC_OLD-d49a5374c37967110a8bf11844893f62951878ee.zip opensim-SC_OLD-d49a5374c37967110a8bf11844893f62951878ee.tar.gz opensim-SC_OLD-d49a5374c37967110a8bf11844893f62951878ee.tar.bz2 opensim-SC_OLD-d49a5374c37967110a8bf11844893f62951878ee.tar.xz |
Make it more unlikely that a script teleport will be caught by default region landing point.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index ad094b4..58d6cf2 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -456,7 +456,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
456 | } | 456 | } |
457 | 457 | ||
458 | // Check Default Location (Also See ScenePresence.CompleteMovement) | 458 | // Check Default Location (Also See ScenePresence.CompleteMovement) |
459 | if (position.X == 128f && position.Y == 128f) | 459 | if (position.X == 128f && position.Y == 128f && position.Z == 22.5f) |
460 | position = sp.Scene.RegionInfo.DefaultLandingPoint; | 460 | position = sp.Scene.RegionInfo.DefaultLandingPoint; |
461 | 461 | ||
462 | // TODO: Get proper AVG Height | 462 | // TODO: Get proper AVG Height |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index d501b7f..463f6c8 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2044,7 +2044,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2044 | } | 2044 | } |
2045 | 2045 | ||
2046 | // Check Default Location (Also See EntityTransferModule.TeleportAgentWithinRegion) | 2046 | // Check Default Location (Also See EntityTransferModule.TeleportAgentWithinRegion) |
2047 | if (AbsolutePosition.X == 128f && AbsolutePosition.Y == 128f) | 2047 | if (AbsolutePosition.X == 128f && AbsolutePosition.Y == 128f && AbsolutePosition.Z == 22.5f) |
2048 | AbsolutePosition = Scene.RegionInfo.DefaultLandingPoint; | 2048 | AbsolutePosition = Scene.RegionInfo.DefaultLandingPoint; |
2049 | 2049 | ||
2050 | if (!MakeRootAgent(AbsolutePosition, flying, ref look)) | 2050 | if (!MakeRootAgent(AbsolutePosition, flying, ref look)) |