add newRegion parameter to CrossAgentToNewRegion event and trigger the event after crossing thread is invoked

This commit is contained in:
dahlia
2014-02-20 00:18:28 -08:00
parent 269a6410a0
commit a2866b85f3
3 changed files with 5 additions and 4 deletions

View File

@@ -1531,6 +1531,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
CrossAgentToNewRegionDelegate d = CrossAgentToNewRegionAsync;
d.BeginInvoke(agent, newpos, neighbourRegion, isFlying, version, CrossAgentToNewRegionCompleted, d);
Scene.EventManager.TriggerCrossAgentToNewRegion(agent, isFlying, neighbourRegion);
return true;
}