From cace0e055cf0bc574d412563371973aeb9c3d54a Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Sun, 9 Dec 2007 14:47:18 +0000 Subject: change PacketQueue to take the byte[] throttle instead of the Packet to set the throttles --- OpenSim/Region/ClientStack/ClientView.cs | 3 ++- OpenSim/Region/ClientStack/PacketQueue.cs | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index d71feb0..3fb21e3 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs @@ -3107,7 +3107,8 @@ namespace OpenSim.Region.ClientStack break; case PacketType.AgentThrottle: - PacketQueue.SetThrottleFromClient(Pack); + AgentThrottlePacket atpack = (AgentThrottlePacket)Pack; + PacketQueue.SetThrottleFromClient(atpack.Throttle.Throttles); break; #endregion diff --git a/OpenSim/Region/ClientStack/PacketQueue.cs b/OpenSim/Region/ClientStack/PacketQueue.cs index 5deede5..ca878bb 100644 --- a/OpenSim/Region/ClientStack/PacketQueue.cs +++ b/OpenSim/Region/ClientStack/PacketQueue.cs @@ -330,11 +330,8 @@ namespace OpenSim.Region.ClientStack return (int)(((float)value/(float)curmax) * newmax); } - public void SetThrottleFromClient(Packet Pack) + public void SetThrottleFromClient(byte[] throttle) { - AgentThrottlePacket atpack = (AgentThrottlePacket)Pack; - - byte[] throttle = atpack.Throttle.Throttles; int tResend = -1; int tLand = -1; int tWind = -1; -- cgit v1.1