aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer/UserManager.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-10-04 18:46:34 +0000
committerJustin Clarke Casey2008-10-04 18:46:34 +0000
commit0b594a072c00c81f68f00920a4acb48e8b9638de (patch)
tree75762d7dd8b88140c72a29e6703bb85caacd9b11 /OpenSim/Grid/UserServer/UserManager.cs
parentAdded immediate TP failure message for TPs to regions that aren't there, (diff)
downloadopensim-SC_OLD-0b594a072c00c81f68f00920a4acb48e8b9638de.zip
opensim-SC_OLD-0b594a072c00c81f68f00920a4acb48e8b9638de.tar.gz
opensim-SC_OLD-0b594a072c00c81f68f00920a4acb48e8b9638de.tar.bz2
opensim-SC_OLD-0b594a072c00c81f68f00920a4acb48e8b9638de.tar.xz
* Check in the second part of http://opensimulator.org/mantis/view.php?id=2334 since enough time has passed such that servers following head have probably updated
* This patch aims to store look at data when an avatar logs off in grid mode * However, in my short test it doesn't appear to be working yet - numbers are being stored but they don't look correct * But this doesn't appear to cause any login problems * Thanks tyre
Diffstat (limited to '')
-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 {