diff options
author | Jeff Ames | 2008-08-15 10:24:04 +0000 |
---|---|---|
committer | Jeff Ames | 2008-08-15 10:24:04 +0000 |
commit | dde21314e75acdaeff27af70077f283493401961 (patch) | |
tree | 490ab065895adb41ee4771fce623f99faa60b507 /OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |
parent | Fixes a case where, when inventory is not currently accessible due (diff) | |
download | opensim-SC-dde21314e75acdaeff27af70077f283493401961.zip opensim-SC-dde21314e75acdaeff27af70077f283493401961.tar.gz opensim-SC-dde21314e75acdaeff27af70077f283493401961.tar.bz2 opensim-SC-dde21314e75acdaeff27af70077f283493401961.tar.xz |
Update svn properties, formatting cleanup, fix a couple compiler warnings.
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1UserServices.cs')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index ee5c7bb..01b1933 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |||
@@ -75,8 +75,10 @@ namespace OpenSim.Region.Communications.OGS1 | |||
75 | userData.Image = new LLUUID((string) data["profile_image"]); | 75 | userData.Image = new LLUUID((string) data["profile_image"]); |
76 | userData.LastLogin = Convert.ToInt32((string) data["profile_lastlogin"]); | 76 | userData.LastLogin = Convert.ToInt32((string) data["profile_lastlogin"]); |
77 | userData.HomeRegion = Convert.ToUInt64((string) data["home_region"]); | 77 | userData.HomeRegion = Convert.ToUInt64((string) data["home_region"]); |
78 | if(data.Contains("home_region_id")) userData.HomeRegionID = new LLUUID((string)data["home_region_id"]); | 78 | if (data.Contains("home_region_id")) |
79 | else userData.HomeRegionID = LLUUID.Zero; | 79 | userData.HomeRegionID = new LLUUID((string)data["home_region_id"]); |
80 | else | ||
81 | userData.HomeRegionID = LLUUID.Zero; | ||
80 | userData.HomeLocation = | 82 | userData.HomeLocation = |
81 | new LLVector3((float) Convert.ToDecimal((string) data["home_coordinates_x"]), | 83 | new LLVector3((float) Convert.ToDecimal((string) data["home_coordinates_x"]), |
82 | (float) Convert.ToDecimal((string) data["home_coordinates_y"]), | 84 | (float) Convert.ToDecimal((string) data["home_coordinates_y"]), |
@@ -85,10 +87,10 @@ namespace OpenSim.Region.Communications.OGS1 | |||
85 | new LLVector3((float) Convert.ToDecimal((string) data["home_look_x"]), | 87 | new LLVector3((float) Convert.ToDecimal((string) data["home_look_x"]), |
86 | (float) Convert.ToDecimal((string) data["home_look_y"]), | 88 | (float) Convert.ToDecimal((string) data["home_look_y"]), |
87 | (float) Convert.ToDecimal((string) data["home_look_z"])); | 89 | (float) Convert.ToDecimal((string) data["home_look_z"])); |
88 | if(data.Contains("user_flags")) | 90 | if (data.Contains("user_flags")) |
89 | userData.UserFlags = Convert.ToInt32((string) data["user_flags"]); | 91 | userData.UserFlags = Convert.ToInt32((string) data["user_flags"]); |
90 | if(data.Contains("god_level")) | 92 | if (data.Contains("god_level")) |
91 | userData.GodLevel = Convert.ToInt32((string) data["god_level"]); | 93 | userData.GodLevel = Convert.ToInt32((string) data["god_level"]); |
92 | 94 | ||
93 | return userData; | 95 | return userData; |
94 | } | 96 | } |