aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs28
1 files changed, 27 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 2efaa79..4ed9a0a 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -331,6 +331,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
331 private Prioritizer m_prioritizer; 331 private Prioritizer m_prioritizer;
332 private bool m_disableFacelights = false; 332 private bool m_disableFacelights = false;
333 333
334 private bool m_VelocityInterpolate = false;
334 private const uint MaxTransferBytesPerPacket = 600; 335 private const uint MaxTransferBytesPerPacket = 600;
335 336
336 337
@@ -5309,8 +5310,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5309 // If AgentUpdate is ever handled asynchronously, then we will also need to construct a new AgentUpdateArgs 5310 // If AgentUpdate is ever handled asynchronously, then we will also need to construct a new AgentUpdateArgs
5310 // for each AgentUpdate packet. 5311 // for each AgentUpdate packet.
5311 AddLocalPacketHandler(PacketType.AgentUpdate, HandleAgentUpdate, false); 5312 AddLocalPacketHandler(PacketType.AgentUpdate, HandleAgentUpdate, false);
5312 5313
5313 AddLocalPacketHandler(PacketType.ViewerEffect, HandleViewerEffect, false); 5314 AddLocalPacketHandler(PacketType.ViewerEffect, HandleViewerEffect, false);
5315 AddLocalPacketHandler(PacketType.VelocityInterpolateOff, HandleVelocityInterpolateOff, false);
5316 AddLocalPacketHandler(PacketType.VelocityInterpolateOn, HandleVelocityInterpolateOn, false);
5314 AddLocalPacketHandler(PacketType.AgentCachedTexture, HandleAgentTextureCached, false); 5317 AddLocalPacketHandler(PacketType.AgentCachedTexture, HandleAgentTextureCached, false);
5315 AddLocalPacketHandler(PacketType.MultipleObjectUpdate, HandleMultipleObjUpdate, false); 5318 AddLocalPacketHandler(PacketType.MultipleObjectUpdate, HandleMultipleObjUpdate, false);
5316 AddLocalPacketHandler(PacketType.MoneyTransferRequest, HandleMoneyTransferRequest, false); 5319 AddLocalPacketHandler(PacketType.MoneyTransferRequest, HandleMoneyTransferRequest, false);
@@ -5828,6 +5831,29 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5828 return true; 5831 return true;
5829 } 5832 }
5830 5833
5834 private bool HandleVelocityInterpolateOff(IClientAPI sender, Packet Pack)
5835 {
5836 VelocityInterpolateOffPacket p = (VelocityInterpolateOffPacket)Pack;
5837 if (p.AgentData.SessionID != SessionId ||
5838 p.AgentData.AgentID != AgentId)
5839 return true;
5840
5841 m_VelocityInterpolate = false;
5842 return true;
5843 }
5844
5845 private bool HandleVelocityInterpolateOn(IClientAPI sender, Packet Pack)
5846 {
5847 VelocityInterpolateOffPacket p = (VelocityInterpolateOffPacket)Pack;
5848 if (p.AgentData.SessionID != SessionId ||
5849 p.AgentData.AgentID != AgentId)
5850 return true;
5851
5852 m_VelocityInterpolate = true;
5853 return true;
5854 }
5855
5856
5831 private bool HandleAvatarPropertiesRequest(IClientAPI sender, Packet Pack) 5857 private bool HandleAvatarPropertiesRequest(IClientAPI sender, Packet Pack)
5832 { 5858 {
5833 AvatarPropertiesRequestPacket avatarProperties = (AvatarPropertiesRequestPacket)Pack; 5859 AvatarPropertiesRequestPacket avatarProperties = (AvatarPropertiesRequestPacket)Pack;