aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSimMain.cs
diff options
context:
space:
mode:
authorlbsa712007-05-17 13:46:26 +0000
committerlbsa712007-05-17 13:46:26 +0000
commit831c7a27ffe3a4d8229dc8b4e49930ce18fdb910 (patch)
tree46cdd2ccc5d25f2cc551e64e12582fae1166658c /OpenSim/OpenSimMain.cs
parentAttempt 2 (diff)
downloadopensim-SC_OLD-831c7a27ffe3a4d8229dc8b4e49930ce18fdb910.zip
opensim-SC_OLD-831c7a27ffe3a4d8229dc8b4e49930ce18fdb910.tar.gz
opensim-SC_OLD-831c7a27ffe3a4d8229dc8b4e49930ce18fdb910.tar.bz2
opensim-SC_OLD-831c7a27ffe3a4d8229dc8b4e49930ce18fdb910.tar.xz
* did the try get thing and introduced some variables for readability
Diffstat (limited to 'OpenSim/OpenSimMain.cs')
-rw-r--r--OpenSim/OpenSimMain.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/OpenSimMain.cs b/OpenSim/OpenSimMain.cs
index 0b614f8..e90ad54 100644
--- a/OpenSim/OpenSimMain.cs
+++ b/OpenSim/OpenSimMain.cs
@@ -277,11 +277,16 @@ namespace OpenSim
277 agent_data.circuitcode = Convert.ToUInt32(requestData["circuit_code"]); 277 agent_data.circuitcode = Convert.ToUInt32(requestData["circuit_code"]);
278 agent_data.startpos = new LLVector3(Single.Parse((string)requestData["pos_x"]), Single.Parse((string)requestData["pos_y"]), Single.Parse((string)requestData["pos_z"])); 278 agent_data.startpos = new LLVector3(Single.Parse((string)requestData["pos_x"]), Single.Parse((string)requestData["pos_y"]), Single.Parse((string)requestData["pos_z"]));
279 279
280 if (((RemoteGridBase)this.GridServers.GridServer).agentcircuits.ContainsKey((uint)agent_data.circuitcode)) 280 uint circuitcode = (uint)agent_data.circuitcode;
281 RemoteGridBase gridServer = (RemoteGridBase)this.GridServers.GridServer;
282
283 AgentCircuitData agentCircuit;
284
285 if (gridServer.agentcircuits.TryGetValue(circuitcode, out agentCircuit))
281 { 286 {
282 ((RemoteGridBase)this.GridServers.GridServer).agentcircuits[(uint)agent_data.circuitcode].firstname = agent_data.firstname; 287 agentCircuit.firstname = agent_data.firstname;
283 ((RemoteGridBase)this.GridServers.GridServer).agentcircuits[(uint)agent_data.circuitcode].lastname = agent_data.lastname; 288 agentCircuit.lastname = agent_data.lastname;
284 ((RemoteGridBase)this.GridServers.GridServer).agentcircuits[(uint)agent_data.circuitcode].startpos = agent_data.startpos; 289 agentCircuit.startpos = agent_data.startpos;
285 } 290 }
286 291
287 return new XmlRpcResponse(); 292 return new XmlRpcResponse();