From d7d1bee4a791749b388bd5088974a6be03a87be8 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Sun, 14 Sep 2008 13:57:25 +0000 Subject: MessageServer gets the agent position (positionx/y/z) as float, not as int in the login_to_simulator message. Changed parsing accordingly (#2190). --- OpenSim/Grid/MessagingServer/MessageService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Grid/MessagingServer/MessageService.cs b/OpenSim/Grid/MessagingServer/MessageService.cs index 1c5d334..27892df 100644 --- a/OpenSim/Grid/MessagingServer/MessageService.cs +++ b/OpenSim/Grid/MessagingServer/MessageService.cs @@ -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; } -- cgit v1.1