diff options
author | UbitUmarov | 2019-01-18 22:18:49 +0000 |
---|---|---|
committer | UbitUmarov | 2019-01-18 22:18:49 +0000 |
commit | 796a8efe25e74253b25d3c8a265635e8517d5f05 (patch) | |
tree | 8f716f2e36c8dc835193312192be0d6481edbd31 /OpenSim/Region/CoreModules/World/Estate | |
parent | fix HG tp detection (diff) | |
download | opensim-SC-796a8efe25e74253b25d3c8a265635e8517d5f05.zip opensim-SC-796a8efe25e74253b25d3c8a265635e8517d5f05.tar.gz opensim-SC-796a8efe25e74253b25d3c8a265635e8517d5f05.tar.bz2 opensim-SC-796a8efe25e74253b25d3c8a265635e8517d5f05.tar.xz |
a few changes to tp home
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Estate')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateModule.cs | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateModule.cs index f3c8aa8..f4a174a 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateModule.cs | |||
@@ -225,13 +225,10 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
225 | continue; | 225 | continue; |
226 | 226 | ||
227 | ScenePresence p = scene.GetScenePresence(prey); | 227 | ScenePresence p = scene.GetScenePresence(prey); |
228 | if (p != null && !p.IsChildAgent ) | 228 | if (p != null && !p.IsChildAgent && !p.IsDeleted && !p.IsInTransit) |
229 | { | 229 | { |
230 | if(!p.IsDeleted && !p.IsInTransit) | 230 | p.ControllingClient.SendTeleportStart(16); |
231 | { | 231 | scene.TeleportClientHome(prey, client); |
232 | p.ControllingClient.SendTeleportStart(16); | ||
233 | scene.TeleportClientHome(prey, p.ControllingClient); | ||
234 | } | ||
235 | return; | 232 | return; |
236 | } | 233 | } |
237 | } | 234 | } |
@@ -256,13 +253,14 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
256 | if (s.RegionInfo.EstateSettings.EstateID != estateID) | 253 | if (s.RegionInfo.EstateSettings.EstateID != estateID) |
257 | continue; | 254 | continue; |
258 | 255 | ||
259 | scene.ForEachScenePresence(delegate(ScenePresence p) { | 256 | scene.ForEachScenePresence(delegate(ScenePresence p) |
260 | if (p != null && !p.IsChildAgent) | ||
261 | { | 257 | { |
262 | p.ControllingClient.SendTeleportStart(16); | 258 | if (p != null && !p.IsChildAgent && !p.IsDeleted && !p.IsInTransit) |
263 | scene.TeleportClientHome(p.ControllingClient.AgentId, p.ControllingClient); | 259 | { |
264 | } | 260 | p.ControllingClient.SendTeleportStart(16); |
265 | }); | 261 | scene.TeleportClientHome(p.ControllingClient.AgentId, client); |
262 | } | ||
263 | }); | ||
266 | } | 264 | } |
267 | 265 | ||
268 | m_EstateConnector.SendTeleportHomeAllUsers(estateID); | 266 | m_EstateConnector.SendTeleportHomeAllUsers(estateID); |