aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework/UserProfileManager.cs
diff options
context:
space:
mode:
authorMW2007-05-14 20:29:57 +0000
committerMW2007-05-14 20:29:57 +0000
commitaaedfb5ae26ba2e98a40149a23898135a8d2e85c (patch)
tree33f75bc63d5fbe4ecfcf199c8775d0728b88bc96 /OpenSim.Framework/UserProfileManager.cs
parentAdded some sanity checks to AddViewerAgent to prevent duplicate addition (now... (diff)
downloadopensim-SC_OLD-aaedfb5ae26ba2e98a40149a23898135a8d2e85c.zip
opensim-SC_OLD-aaedfb5ae26ba2e98a40149a23898135a8d2e85c.tar.gz
opensim-SC_OLD-aaedfb5ae26ba2e98a40149a23898135a8d2e85c.tar.bz2
opensim-SC_OLD-aaedfb5ae26ba2e98a40149a23898135a8d2e85c.tar.xz
set the default region x,y and sim port to 0 in UserProfileManager. XmlRpcLoginMethod() , these are then over written in CustomiseResponse().
Diffstat (limited to 'OpenSim.Framework/UserProfileManager.cs')
-rw-r--r--OpenSim.Framework/UserProfileManager.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim.Framework/UserProfileManager.cs b/OpenSim.Framework/UserProfileManager.cs
index eb8b7cd..5752f8c 100644
--- a/OpenSim.Framework/UserProfileManager.cs
+++ b/OpenSim.Framework/UserProfileManager.cs
@@ -183,16 +183,16 @@ namespace OpenSim.Framework.User
183 responseData["initial-outfit"] = InitialOutfit; 183 responseData["initial-outfit"] = InitialOutfit;
184 responseData["seconds_since_epoch"] = (Int32)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; 184 responseData["seconds_since_epoch"] = (Int32)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
185 responseData["start_location"] = "last"; 185 responseData["start_location"] = "last";
186 responseData["home"] = "{'region_handle':[r" + (997 * 256).ToString() + ",r" + (996 * 256).ToString() + "], 'position':[r" + TheUser.homepos.X.ToString() + ",r" + TheUser.homepos.Y.ToString() + ",r" + TheUser.homepos.Z.ToString() + "], 'look_at':[r" + TheUser.homelookat.X.ToString() + ",r" + TheUser.homelookat.Y.ToString() + ",r" + TheUser.homelookat.Z.ToString() + "]}"; 186 responseData["home"] = "{'region_handle':[r" + (0 * 256).ToString() + ",r" + (0 * 256).ToString() + "], 'position':[r" + TheUser.homepos.X.ToString() + ",r" + TheUser.homepos.Y.ToString() + ",r" + TheUser.homepos.Z.ToString() + "], 'look_at':[r" + TheUser.homelookat.X.ToString() + ",r" + TheUser.homelookat.Y.ToString() + ",r" + TheUser.homelookat.Z.ToString() + "]}";
187 responseData["message"] = DefaultStartupMsg; 187 responseData["message"] = DefaultStartupMsg;
188 responseData["first_name"] = TheUser.firstname; 188 responseData["first_name"] = TheUser.firstname;
189 responseData["circuit_code"] = (Int32)circode; 189 responseData["circuit_code"] = (Int32)circode;
190 responseData["sim_port"] = 9000; //(Int32)SimInfo.sim_port; 190 responseData["sim_port"] = 0; //(Int32)SimInfo.sim_port;
191 responseData["secure_session_id"] = TheUser.CurrentSecureSessionID.ToStringHyphenated(); 191 responseData["secure_session_id"] = TheUser.CurrentSecureSessionID.ToStringHyphenated();
192 responseData["look_at"] = "\n[r" + TheUser.homelookat.X.ToString() + ",r" + TheUser.homelookat.Y.ToString() + ",r" + TheUser.homelookat.Z.ToString() + "]\n"; 192 responseData["look_at"] = "\n[r" + TheUser.homelookat.X.ToString() + ",r" + TheUser.homelookat.Y.ToString() + ",r" + TheUser.homelookat.Z.ToString() + "]\n";
193 responseData["agent_id"] = AgentID.ToStringHyphenated(); 193 responseData["agent_id"] = AgentID.ToStringHyphenated();
194 responseData["region_y"] = (Int32)996 * 256; // (Int32)SimInfo.RegionLocY * 256; 194 responseData["region_y"] = (Int32)0 * 256; // (Int32)SimInfo.RegionLocY * 256;
195 responseData["region_x"] = (Int32)997 * 256; //SimInfo.RegionLocX * 256; 195 responseData["region_x"] = (Int32)0 * 256; //SimInfo.RegionLocX * 256;
196 responseData["seed_capability"] = ""; 196 responseData["seed_capability"] = "";
197 responseData["agent_access"] = "M"; 197 responseData["agent_access"] = "M";
198 responseData["session_id"] = TheUser.CurrentSessionID.ToStringHyphenated(); 198 responseData["session_id"] = TheUser.CurrentSessionID.ToStringHyphenated();