From 9f2f3afe22b28d8ff56f45148914eb8b9d933443 Mon Sep 17 00:00:00 2001 From: "Teravus Ovares (Dan Olivares)" Date: Sun, 30 Aug 2009 02:49:50 -0400 Subject: [PATCH] * Fixes a teleport issue when teleporting out of a region to a different one. --- OpenSim/Region/Framework/Scenes/Scene.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 9255d36a28..b8c8f3268a 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -3377,6 +3377,12 @@ namespace OpenSim.Region.Framework.Scenes if (!result) regionHandle = m_regInfo.RegionHandle; + else + { + // not in this region, undo the shift! + position.X -= shiftx; + position.Y -= shifty; + } if (m_teleportModule != null) {