MessageServer gets the agent position (positionx/y/z) as float, not as int in

the login_to_simulator message. Changed parsing accordingly (#2190).
0.6.0-stable
Homer Horwitz 2008-09-14 13:57:25 +00:00
parent 2819559499
commit d7d1bee4a7
1 changed files with 3 additions and 3 deletions

View File

@ -453,9 +453,9 @@ namespace OpenSim.Grid.MessagingServer
else
{
agentData.startpos =
new Vector3(Convert.ToUInt32(requestData["positionx"]),
Convert.ToUInt32(requestData["positiony"]),
Convert.ToUInt32(requestData["positionz"]));
new Vector3(Convert.ToSingle(requestData["positionx"]),
Convert.ToSingle(requestData["positiony"]),
Convert.ToSingle(requestData["positionz"]));
agentData.child = false;
}