change PacketQueue to take the byte[] throttle instead
of the Packet to set the throttlesafrisby
parent
f2b175ef08
commit
cace0e055c
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue