aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs28
1 files changed, 9 insertions, 19 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index e6041b4..e94cdbe 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -1085,22 +1085,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1085 1085
1086 m_entityTransferStateMachine.UpdateInTransit(sp.UUID, AgentTransferState.CleaningUp); 1086 m_entityTransferStateMachine.UpdateInTransit(sp.UUID, AgentTransferState.CleaningUp);
1087 1087
1088 sp.CloseChildAgents(logout, destinationHandle, finalDestination.RegionSizeX, finalDestination.RegionSizeY);
1088 1089
1089 // May need to logout or other cleanup
1090// AgentHasMovedAway(sp, logout);
1091// AgentHasMovedAway(sp, true); // until logout use is checked
1092
1093 // Well, this is it. The agent is over there.
1094// KillEntity(sp.Scene, sp.LocalId);
1095
1096 sp.HasMovedAway(!(OutSideViewRange || logout));
1097
1098 // call HG hook 1090 // call HG hook
1099 AgentHasMovedAway(sp, logout); 1091 AgentHasMovedAway(sp, logout);
1100 1092
1101 sp.CloseChildAgents(logout, destinationHandle, finalDestination.RegionSizeX, finalDestination.RegionSizeY); 1093 sp.HasMovedAway(!(OutSideViewRange || logout));
1102 1094
1103 // Now let's make it officially a child agent 1095 // Now let's make it officially a child agent
1104 sp.MakeChildAgent(destinationHandle); 1096 sp.MakeChildAgent(destinationHandle);
1105 1097
1106 // Finally, let's close this previously-known-as-root agent, when the jump is outside the view zone 1098 // Finally, let's close this previously-known-as-root agent, when the jump is outside the view zone
@@ -1230,8 +1222,6 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1230 1222
1231 m_entityTransferStateMachine.UpdateInTransit(sp.UUID, AgentTransferState.CleaningUp); 1223 m_entityTransferStateMachine.UpdateInTransit(sp.UUID, AgentTransferState.CleaningUp);
1232 1224
1233 sp.HasMovedAway(!(OutSideViewRange || logout));
1234
1235 // Need to signal neighbours whether child agents may need closing irrespective of whether this 1225 // Need to signal neighbours whether child agents may need closing irrespective of whether this
1236 // one needed closing. We also need to close child agents as quickly as possible to avoid complicated 1226 // one needed closing. We also need to close child agents as quickly as possible to avoid complicated
1237 // race conditions with rapid agent releporting (e.g. from A1 to a non-neighbour B, back 1227 // race conditions with rapid agent releporting (e.g. from A1 to a non-neighbour B, back
@@ -1240,15 +1230,15 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1240 // abandoned without proper close by viewer but then re-used by an incoming connection. 1230 // abandoned without proper close by viewer but then re-used by an incoming connection.
1241 sp.CloseChildAgents(logout, destinationHandle, finalDestination.RegionSizeX, finalDestination.RegionSizeY); 1231 sp.CloseChildAgents(logout, destinationHandle, finalDestination.RegionSizeX, finalDestination.RegionSizeY);
1242 1232
1243// AgentHasMovedAway(sp, true); 1233 sp.HasMovedAway(!(OutSideViewRange || logout));
1244 // Well, this is it. The agent is over there. 1234
1245// KillEntity(sp.Scene, sp.LocalId); 1235 //HG hook
1236 AgentHasMovedAway(sp, logout);
1246 1237
1247 // Now let's make it officially a child agent 1238 // Now let's make it officially a child agent
1248 sp.MakeChildAgent(destinationHandle); 1239 sp.MakeChildAgent(destinationHandle);
1249 1240
1250 //HG hook 1241
1251 AgentHasMovedAway(sp, logout);
1252 1242
1253 // Finally, let's close this previously-known-as-root agent, when the jump is outside the view zone 1243 // Finally, let's close this previously-known-as-root agent, when the jump is outside the view zone
1254 // go by HG hook 1244 // go by HG hook