diff options
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/EntityTransfer')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index d6f37ae..1cd2ff4 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -200,6 +200,15 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
200 | m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Final destination is x={0} y={1} uuid={2}", | 200 | m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Final destination is x={0} y={1} uuid={2}", |
201 | finalDestination.RegionLocX / Constants.RegionSize, finalDestination.RegionLocY / Constants.RegionSize, finalDestination.RegionID); | 201 | finalDestination.RegionLocX / Constants.RegionSize, finalDestination.RegionLocY / Constants.RegionSize, finalDestination.RegionID); |
202 | 202 | ||
203 | // Check that these are not the same coordinates | ||
204 | if (finalDestination.RegionLocX == sp.Scene.RegionInfo.RegionLocX && | ||
205 | finalDestination.RegionLocY == sp.Scene.RegionInfo.RegionLocY) | ||
206 | { | ||
207 | // Can't do. Viewer crashes | ||
208 | sp.ControllingClient.SendTeleportFailed("Space warp! You would crash. Move to a different region and try again."); | ||
209 | return; | ||
210 | } | ||
211 | |||
203 | // | 212 | // |
204 | // This is it | 213 | // This is it |
205 | // | 214 | // |
@@ -446,6 +455,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
446 | // Now let's make it officially a child agent | 455 | // Now let's make it officially a child agent |
447 | sp.MakeChildAgent(); | 456 | sp.MakeChildAgent(); |
448 | 457 | ||
458 | sp.Scene.CleanDroppedAttachments(); | ||
459 | |||
449 | // Finally, let's close this previously-known-as-root agent, when the jump is outside the view zone | 460 | // Finally, let's close this previously-known-as-root agent, when the jump is outside the view zone |
450 | 461 | ||
451 | if (NeedsClosing(oldRegionX, newRegionX, oldRegionY, newRegionY, reg)) | 462 | if (NeedsClosing(oldRegionX, newRegionX, oldRegionY, newRegionY, reg)) |