change PacketQueue to take the byte[] throttle instead

of the Packet to set the throttles
afrisby
Sean Dague 2007-12-09 14:47:18 +00:00
parent f2b175ef08
commit cace0e055c
2 changed files with 3 additions and 5 deletions

View File

@ -3107,7 +3107,8 @@ namespace OpenSim.Region.ClientStack
break; break;
case PacketType.AgentThrottle: case PacketType.AgentThrottle:
PacketQueue.SetThrottleFromClient(Pack); AgentThrottlePacket atpack = (AgentThrottlePacket)Pack;
PacketQueue.SetThrottleFromClient(atpack.Throttle.Throttles);
break; break;
#endregion #endregion

View File

@ -330,11 +330,8 @@ namespace OpenSim.Region.ClientStack
return (int)(((float)value/(float)curmax) * newmax); 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 tResend = -1;
int tLand = -1; int tLand = -1;
int tWind = -1; int tWind = -1;