diff options
| author | Logan Dethrow <log@lindenlab.com> | 2013-08-08 17:13:53 -0400 | 
|---|---|---|
| committer | Logan Dethrow <log@lindenlab.com> | 2013-08-08 17:13:53 -0400 | 
| commit | 0e8a966f3ba6db8a789b8053bc0eb70584c526fd (patch) | |
| tree | f1ec294a7fa95525f018760300284631c470c4bf | |
| parent | 8b612cab394dc46b52a359b2b24863c49a5bd2d7 (diff) | |
Moved commented out capabilities debugging code into ifdef'd block and added a comment describing the use of it.
| -rwxr-xr-x | indra/newview/llviewerregion.cpp | 28 | 
1 files changed, 13 insertions, 15 deletions
| diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index ad046accd0..7150089380 100755 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -76,6 +76,11 @@  	#pragma warning(disable:4355)  #endif +// When we receive a base grant of capabilities that has a different number of  +// capabilities than the original base grant received for the region, print  +// out the two lists of capabilities for analysis. +//#define DEBUG_CAPS_GRANTS +  const F32 WATER_TEXTURE_SCALE = 8.f;			//  Number of times to repeat the water texture across a region  const S16 MAX_MAP_DIST = 10;  // The server only keeps our pending agent info for 60 seconds. @@ -328,25 +333,18 @@ private:  				<< "mCapabilities == " << regionp->getRegionImpl()->mCapabilities.size()  				<< " mSecondCapabilitiesTracker == " << regionp->getRegionImpl()->mSecondCapabilitiesTracker.size()  				<< LL_ENDL; +#ifdef DEBUG_CAPS_GRANTS +			LL_WARNS2("AppInit", "Capabilities") +				<< "Initial Base capabilities: " << LL_ENDL; -			//LL_WARNS2("AppInit", "Capabilities") -			//	<< "Initial Base capabilities: " << LL_ENDL; - -			//log_capabilities(regionp->getRegionImpl()->mCapabilities); +			log_capabilities(regionp->getRegionImpl()->mCapabilities); -			//LL_WARNS2("AppInit", "Capabilities") -			//				<< "Latest base capabilities: " << LL_ENDL; +			LL_WARNS2("AppInit", "Capabilities") +							<< "Latest base capabilities: " << LL_ENDL; -			//log_capabilities(regionp->getRegionImpl()->mSecondCapabilitiesTracker); +			log_capabilities(regionp->getRegionImpl()->mSecondCapabilitiesTracker); -			// *TODO  -			//add cap debug versus original check? -			//CapabilityMap::const_iterator iter = regionp->getRegionImpl()->mCapabilities.begin(); -			//while (iter!=regionp->getRegionImpl()->mCapabilities.end() ) -			//{ -			//	llinfos<<"BaseCapabilitiesCompleteTracker Original "<<iter->first<<" "<< iter->second<<llendl; -			//	++iter; -			//} +#endif  			if (regionp->getRegionImpl()->mSecondCapabilitiesTracker.size() > regionp->getRegionImpl()->mCapabilities.size() )  			{ | 
