diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/EntityTransfer')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 2738346..8eb0fdf 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -202,6 +202,15 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
202 | m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Final destination is x={0} y={1} uuid={2}", | 202 | m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Final destination is x={0} y={1} uuid={2}", |
203 | finalDestination.RegionLocX / Constants.RegionSize, finalDestination.RegionLocY / Constants.RegionSize, finalDestination.RegionID); | 203 | finalDestination.RegionLocX / Constants.RegionSize, finalDestination.RegionLocY / Constants.RegionSize, finalDestination.RegionID); |
204 | 204 | ||
205 | // Check that these are not the same coordinates | ||
206 | if (finalDestination.RegionLocX == sp.Scene.RegionInfo.RegionLocX && | ||
207 | finalDestination.RegionLocY == sp.Scene.RegionInfo.RegionLocY) | ||
208 | { | ||
209 | // Can't do. Viewer crashes | ||
210 | sp.ControllingClient.SendTeleportFailed("Space warp! You would crash. Move to a different region and try again."); | ||
211 | return; | ||
212 | } | ||
213 | |||
205 | // | 214 | // |
206 | // This is it | 215 | // This is it |
207 | // | 216 | // |