diff options
author | Diva Canto | 2010-08-27 17:25:04 -0700 |
---|---|---|
committer | Diva Canto | 2010-08-27 17:26:18 -0700 |
commit | fd28b597685c5cde4f877b24158964f64f5709c9 (patch) | |
tree | 0ced1f4ee411ae17a959082b3df8d4fa90046176 /OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |
parent | Deleted Check4096 from Robust.ini.example (diff) | |
download | opensim-SC_OLD-fd28b597685c5cde4f877b24158964f64f5709c9.zip opensim-SC_OLD-fd28b597685c5cde4f877b24158964f64f5709c9.tar.gz opensim-SC_OLD-fd28b597685c5cde4f877b24158964f64f5709c9.tar.bz2 opensim-SC_OLD-fd28b597685c5cde4f877b24158964f64f5709c9.tar.xz |
Addresses mantis #4991 -- HG between two regions with the same map coordinates fails with no warning
Diffstat (limited to '')
-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 | // |