Add repecting the min and max values back in

0.6.1-post-fixes
Melanie Thielker 2008-12-17 09:55:10 +00:00
parent e394e1c06f
commit a5343c5404
1 changed files with 12 additions and 0 deletions

View File

@ -100,6 +100,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
get { return m_currentThrottle; } get { return m_currentThrottle; }
set set
{ {
if (value < m_minAllowableThrottle)
{
m_currentThrottle = m_minAllowableThrottle;
CalcBits();
return;
}
if (value > m_maxAllowableThrottle)
{
m_currentThrottle = m_maxAllowableThrottle;
CalcBits();
return;
}
m_currentThrottle = value; m_currentThrottle = value;
CalcBits(); CalcBits();