Make the region hand shake flag bit of empry cache independent.

meow-7.2.2
Xiaohong Bao 2013-10-03 15:36:23 -06:00
parent 3fa868e9d6
commit eeb5fb6d35
1 changed files with 5 additions and 5 deletions

View File

@ -2483,11 +2483,11 @@ void LLViewerRegion::unpackRegionHandshake()
U32 flags = 0;
if(sVOCacheCullingEnabled)
{
flags = 0x00000001; //set the bit 0 to be 1 to ask sim to send all cacheable objects.
if(mImpl->mCacheMap.empty())
{
flags |= 0x00000002; //set the bit 1 to be 1 to tell sim the cache file is empty, no need to send cache probes.
}
flags |= 0x00000001; //set the bit 0 to be 1 to ask sim to send all cacheable objects.
}
if(mImpl->mCacheMap.empty())
{
flags |= 0x00000002; //set the bit 1 to be 1 to tell sim the cache file is empty, no need to send cache probes.
}
msg->addU32("Flags", flags );
msg->sendReliable(host);