diff options
author | Robert Adams | 2013-07-22 15:41:14 -0700 |
---|---|---|
committer | Robert Adams | 2013-07-22 15:41:14 -0700 |
commit | e6b6af62dd677077664fdc8801b3a7e894a2b8da (patch) | |
tree | 850436dfaeb4519a3abf8e0445f74564208fb430 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |
parent | Revert "BulletSim: freshen up the code for constraint based linksets." (diff) | |
download | opensim-SC_OLD-e6b6af62dd677077664fdc8801b3a7e894a2b8da.zip opensim-SC_OLD-e6b6af62dd677077664fdc8801b3a7e894a2b8da.tar.gz opensim-SC_OLD-e6b6af62dd677077664fdc8801b3a7e894a2b8da.tar.bz2 opensim-SC_OLD-e6b6af62dd677077664fdc8801b3a7e894a2b8da.tar.xz |
Added check for user movement specification before discarding an incoming
AgentUpdate packet. This fixes the problem with vehicles not moving forward
after the first up-arrow.
Code to fix a potential exception when using different IClientAPIs.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 32282af..f5c0b05 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -1316,9 +1316,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1316 | 1316 | ||
1317 | AgentUpdatePacket agentUpdate = (AgentUpdatePacket)packet; | 1317 | AgentUpdatePacket agentUpdate = (AgentUpdatePacket)packet; |
1318 | 1318 | ||
1319 | LLClientView llClient = client as LLClientView; | ||
1319 | if (agentUpdate.AgentData.SessionID != client.SessionId | 1320 | if (agentUpdate.AgentData.SessionID != client.SessionId |
1320 | || agentUpdate.AgentData.AgentID != client.AgentId | 1321 | || agentUpdate.AgentData.AgentID != client.AgentId |
1321 | || !((LLClientView)client).CheckAgentUpdateSignificance(agentUpdate.AgentData)) | 1322 | || !(llClient == null || llClient.CheckAgentUpdateSignificance(agentUpdate.AgentData)) ) |
1322 | { | 1323 | { |
1323 | PacketPool.Instance.ReturnPacket(packet); | 1324 | PacketPool.Instance.ReturnPacket(packet); |
1324 | return; | 1325 | return; |