diff options
author | Melanie | 2013-02-23 21:00:05 +0000 |
---|---|---|
committer | Melanie | 2013-02-23 21:00:05 +0000 |
commit | ee18db027c67d3ea9b905f4d07bd5a2ec8fdf65f (patch) | |
tree | 5572efde680d5140e5cf26ef17cbf642daa25b5f /OpenSim/Region | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC-ee18db027c67d3ea9b905f4d07bd5a2ec8fdf65f.zip opensim-SC-ee18db027c67d3ea9b905f4d07bd5a2ec8fdf65f.tar.gz opensim-SC-ee18db027c67d3ea9b905f4d07bd5a2ec8fdf65f.tar.bz2 opensim-SC-ee18db027c67d3ea9b905f4d07bd5a2ec8fdf65f.tar.xz |
Make sure state machine is reset if crossing is aborted
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 6f18e1c..6cfd332 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -1132,10 +1132,16 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1132 | bool isFlying, string version) | 1132 | bool isFlying, string version) |
1133 | { | 1133 | { |
1134 | if (!CrossAgentToNewRegionPrep(agent, neighbourRegion)) | 1134 | if (!CrossAgentToNewRegionPrep(agent, neighbourRegion)) |
1135 | { | ||
1136 | m_entityTransferStateMachine.ResetFromTransit(agent.UUID); | ||
1135 | return agent; | 1137 | return agent; |
1138 | } | ||
1136 | 1139 | ||
1137 | if (!CrossAgentIntoNewRegionMain(agent, pos, neighbourRegion, isFlying)) | 1140 | if (!CrossAgentIntoNewRegionMain(agent, pos, neighbourRegion, isFlying)) |
1141 | { | ||
1142 | m_entityTransferStateMachine.ResetFromTransit(agent.UUID); | ||
1138 | return agent; | 1143 | return agent; |
1144 | } | ||
1139 | 1145 | ||
1140 | CrossAgentToNewRegionPost(agent, pos, neighbourRegion, isFlying, version); | 1146 | CrossAgentToNewRegionPost(agent, pos, neighbourRegion, isFlying, version); |
1141 | return agent; | 1147 | return agent; |