aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer/UserManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/UserServer/UserManager.cs')
-rw-r--r--OpenSim/Grid/UserServer/UserManager.cs19
1 files changed, 12 insertions, 7 deletions
diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs
index ecb806f..f7e4e3c 100644
--- a/OpenSim/Grid/UserServer/UserManager.cs
+++ b/OpenSim/Grid/UserServer/UserManager.cs
@@ -710,18 +710,23 @@ namespace OpenSim.Grid.UserServer
710 { 710 {
711 try 711 try
712 { 712 {
713 UUID userUUID = new UUID((string) requestData["avatar_uuid"]); 713 UUID userUUID = new UUID((string)requestData["avatar_uuid"]);
714 UUID RegionID = new UUID((string) requestData["region_uuid"]); 714 UUID RegionID = new UUID((string)requestData["region_uuid"]);
715 ulong regionhandle = (ulong) Convert.ToInt64((string) requestData["region_handle"]); 715 ulong regionhandle = (ulong)Convert.ToInt64((string)requestData["region_handle"]);
716 float posx = (float) Convert.ToDecimal((string) requestData["region_pos_x"]); 716 Vector3 position = new Vector3(
717 float posy = (float) Convert.ToDecimal((string) requestData["region_pos_y"]); 717 (float)Convert.ToDecimal((string)requestData["region_pos_x"]),
718 float posz = (float) Convert.ToDecimal((string) requestData["region_pos_z"]); 718 (float)Convert.ToDecimal((string)requestData["region_pos_y"]),
719 (float)Convert.ToDecimal((string)requestData["region_pos_z"]));
720 Vector3 lookat = new Vector3(
721 (float)Convert.ToDecimal((string)requestData["lookat_x"]),
722 (float)Convert.ToDecimal((string)requestData["lookat_y"]),
723 (float)Convert.ToDecimal((string)requestData["lookat_z"]));
719 724
720 handlerLogOffUser = OnLogOffUser; 725 handlerLogOffUser = OnLogOffUser;
721 if (handlerLogOffUser != null) 726 if (handlerLogOffUser != null)
722 handlerLogOffUser(userUUID); 727 handlerLogOffUser(userUUID);
723 728
724 LogOffUser(userUUID, RegionID, regionhandle, posx, posy, posz); 729 LogOffUser(userUUID, RegionID, regionhandle, position, lookat);
725 } 730 }
726 catch (FormatException) 731 catch (FormatException)
727 { 732 {