diff options
author | Melanie Thielker | 2008-08-14 19:59:32 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-08-14 19:59:32 +0000 |
commit | 7161689a97edcdeceee3d3eeeaee7eadc4e06a89 (patch) | |
tree | a6b77bb4cb8598ce3075f8b5e58895fe0f7a0363 /OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |
parent | Make the estate owner work. Changes permissions checks to allow the (diff) | |
download | opensim-SC-7161689a97edcdeceee3d3eeeaee7eadc4e06a89.zip opensim-SC-7161689a97edcdeceee3d3eeeaee7eadc4e06a89.tar.gz opensim-SC-7161689a97edcdeceee3d3eeeaee7eadc4e06a89.tar.bz2 opensim-SC-7161689a97edcdeceee3d3eeeaee7eadc4e06a89.tar.xz |
Adds UserFlags and GodLevel to the user data store and plumbs then in.
This will have no effect unless both the UGAI and the region are
this revision or later
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index 2d37e2f..ee5c7bb 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |||
@@ -85,6 +85,11 @@ namespace OpenSim.Region.Communications.OGS1 | |||
85 | new LLVector3((float) Convert.ToDecimal((string) data["home_look_x"]), | 85 | new LLVector3((float) Convert.ToDecimal((string) data["home_look_x"]), |
86 | (float) Convert.ToDecimal((string) data["home_look_y"]), | 86 | (float) Convert.ToDecimal((string) data["home_look_y"]), |
87 | (float) Convert.ToDecimal((string) data["home_look_z"])); | 87 | (float) Convert.ToDecimal((string) data["home_look_z"])); |
88 | if(data.Contains("user_flags")) | ||
89 | userData.UserFlags = Convert.ToInt32((string) data["user_flags"]); | ||
90 | if(data.Contains("god_level")) | ||
91 | userData.GodLevel = Convert.ToInt32((string) data["god_level"]); | ||
92 | |||
88 | return userData; | 93 | return userData; |
89 | } | 94 | } |
90 | 95 | ||
@@ -462,6 +467,8 @@ namespace OpenSim.Region.Communications.OGS1 | |||
462 | param["home_look_x"] = UserProfile.HomeLookAtX.ToString(); | 467 | param["home_look_x"] = UserProfile.HomeLookAtX.ToString(); |
463 | param["home_look_y"] = UserProfile.HomeLookAtY.ToString(); | 468 | param["home_look_y"] = UserProfile.HomeLookAtY.ToString(); |
464 | param["home_look_z"] = UserProfile.HomeLookAtZ.ToString(); | 469 | param["home_look_z"] = UserProfile.HomeLookAtZ.ToString(); |
470 | param["user_flags"] = UserProfile.UserFlags.ToString(); | ||
471 | param["god_level"] = UserProfile.GodLevel.ToString(); | ||
465 | 472 | ||
466 | IList parameters = new ArrayList(); | 473 | IList parameters = new ArrayList(); |
467 | parameters.Add(param); | 474 | parameters.Add(param); |