Mantis #7802: set culture to US English on the thread that does the agent crossing, not that it's async and needs to parse decimal numbers.

LSLKeyTest
Diva Canto 2016-06-22 18:10:12 -07:00
parent 1e213f5150
commit 33efc91342
1 changed files with 3 additions and 5 deletions

View File

@ -1470,11 +1470,6 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
return true;
}
public GridRegion GetDestination(Scene scene, UUID agentID, Vector3 pos, EntityTransferContext ctx, out Vector3 newpos)
{
string r = String.Empty;
return GetDestination(scene, agentID, pos, ctx, out newpos, out r);
}
// Given a position relative to the current region and outside of it
// find the new region that the point is actually in.
@ -1562,6 +1557,9 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
EntityTransferContext ctx = new EntityTransferContext();
string failureReason;
// We need this because of decimal number parsing of the protocols.
Culture.SetCurrentCulture();
Vector3 pos = agent.AbsolutePosition + agent.Velocity;
GridRegion neighbourRegion = GetDestination(agent.Scene, agent.UUID, pos,