summaryrefslogtreecommitdiff
path: root/indra/newview/llvlmanager.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-08-19 10:20:55 -0700
committerRichard Linden <none@none>2013-08-19 10:20:55 -0700
commit08eb52c10ca1f916d937fe1927eb659f6d69a6d3 (patch)
tree98e7faecca7ded1dd8732dfef7c13abd424b858b /indra/newview/llvlmanager.cpp
parent4290365ebbf5505bee4fbed8043996fa7687fd03 (diff)
parent612892b45a3413b16e40c49d3bfde77a4ca927fd (diff)
merge
Diffstat (limited to 'indra/newview/llvlmanager.cpp')
-rwxr-xr-xindra/newview/llvlmanager.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/indra/newview/llvlmanager.cpp b/indra/newview/llvlmanager.cpp
index 9b55bbf277..895ceed880 100755
--- a/indra/newview/llvlmanager.cpp
+++ b/indra/newview/llvlmanager.cpp
@@ -52,19 +52,19 @@ LLVLManager::~LLVLManager()
mPacketData.clear();
}
-void LLVLManager::addLayerData(LLVLData *vl_datap, const S32 mesg_size)
+void LLVLManager::addLayerData(LLVLData *vl_datap, const S32Bytes mesg_size)
{
if (LAND_LAYER_CODE == vl_datap->mType)
{
- mLandBits += mesg_size * 8;
+ mLandBits += mesg_size;
}
else if (WIND_LAYER_CODE == vl_datap->mType)
{
- mWindBits += mesg_size * 8;
+ mWindBits += mesg_size;
}
else if (CLOUD_LAYER_CODE == vl_datap->mType)
{
- mCloudBits += mesg_size * 8;
+ mCloudBits += mesg_size;
}
else
{
@@ -112,25 +112,25 @@ void LLVLManager::unpackData(const S32 num_packets)
void LLVLManager::resetBitCounts()
{
- mLandBits = mWindBits = mCloudBits = 0;
+ mLandBits = mWindBits = mCloudBits = (S32Bits)0;
}
-S32 LLVLManager::getLandBits() const
+U32Bits LLVLManager::getLandBits() const
{
return mLandBits;
}
-S32 LLVLManager::getWindBits() const
+U32Bits LLVLManager::getWindBits() const
{
return mWindBits;
}
-S32 LLVLManager::getCloudBits() const
+U32Bits LLVLManager::getCloudBits() const
{
return mCloudBits;
}
-S32 LLVLManager::getTotalBytes() const
+S32Bytes LLVLManager::getTotalBytes() const
{
return mLandBits + mWindBits + mCloudBits;
}