diff options
| author | Debi King (Dessie) <dessie@lindenlab.com> | 2011-07-26 15:41:49 -0400 | 
|---|---|---|
| committer | Debi King (Dessie) <dessie@lindenlab.com> | 2011-07-26 15:41:49 -0400 | 
| commit | ed701685f6d07da47a3a796bd79dfc4ae1860fcc (patch) | |
| tree | 244612881e0787e5f6f7be6a319aaad67fb09059 /indra/newview/llworld.cpp | |
| parent | c567f0dcdd1b31cc94e9065218a88d48cdaf2278 (diff) | |
| parent | c118ec209907618c77613990fe2359d4f92802e6 (diff) | |
merged .hgtags
Diffstat (limited to 'indra/newview/llworld.cpp')
| -rw-r--r-- | indra/newview/llworld.cpp | 94 | 
1 files changed, 2 insertions, 92 deletions
| diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp index ec24b02934..4a6ec7fdbb 100644 --- a/indra/newview/llworld.cpp +++ b/indra/newview/llworld.cpp @@ -61,6 +61,7 @@  #include <map>  #include <cstring> +  //  // Globals  // @@ -91,8 +92,7 @@ LLWorld::LLWorld() :  	mLastPacketsIn(0),  	mLastPacketsOut(0),  	mLastPacketsLost(0), -	mSpaceTimeUSec(0), -	mClassicCloudsEnabled(TRUE) +	mSpaceTimeUSec(0)  {  	for (S32 i = 0; i < 8; i++)  	{ @@ -183,10 +183,6 @@ LLViewerRegion* LLWorld::addRegion(const U64 ®ion_handle, const LLHost &host)  		llerrs << "Unable to create new region!" << llendl;  	} -	regionp->mCloudLayer.create(regionp); -	regionp->mCloudLayer.setWidth((F32)mWidth); -	regionp->mCloudLayer.setWindPointer(®ionp->mWind); -  	mRegionList.push_back(regionp);  	mActiveRegionList.push_back(regionp);  	mCulledRegionList.push_back(regionp); @@ -661,92 +657,6 @@ void LLWorld::updateParticles()  	LLViewerPartSim::getInstance()->updateSimulation();  } -void LLWorld::updateClouds(const F32 dt) -{ -	static LLFastTimer::DeclareTimer ftm("World Clouds"); -	LLFastTimer t(ftm); - -	if ( gSavedSettings.getBOOL("FreezeTime") ) -	{ -		// don't move clouds in snapshot mode -		return; -	} - -	if ( -		mClassicCloudsEnabled != -		gSavedSettings.getBOOL("SkyUseClassicClouds") ) -	{ -		// The classic cloud toggle has been flipped -		// gotta update all of the cloud layers -		mClassicCloudsEnabled = -			gSavedSettings.getBOOL("SkyUseClassicClouds"); - -		if ( !mClassicCloudsEnabled && mActiveRegionList.size() ) -		{ -			// We've transitioned to having classic clouds disabled -			// reset all cloud layers. -			for ( -				region_list_t::iterator iter = mActiveRegionList.begin(); -				iter != mActiveRegionList.end(); -				++iter) -			{ -				LLViewerRegion* regionp = *iter; -				regionp->mCloudLayer.reset(); -			} - -			return; -		} -	} -	else if ( !mClassicCloudsEnabled ) return; - -	if (mActiveRegionList.size()) -	{ -		for (region_list_t::iterator iter = mActiveRegionList.begin(); -			 iter != mActiveRegionList.end(); ++iter) -		{ -			LLViewerRegion* regionp = *iter; -			regionp->mCloudLayer.updatePuffs(dt); -		} - -		// Reshuffle who owns which puffs -		for (region_list_t::iterator iter = mActiveRegionList.begin(); -			 iter != mActiveRegionList.end(); ++iter) -		{ -			LLViewerRegion* regionp = *iter; -			regionp->mCloudLayer.updatePuffOwnership(); -		} - -		// Add new puffs -		for (region_list_t::iterator iter = mActiveRegionList.begin(); -			 iter != mActiveRegionList.end(); ++iter) -		{ -			LLViewerRegion* regionp = *iter; -			regionp->mCloudLayer.updatePuffCount(); -		} -	} -} - -LLCloudGroup* LLWorld::findCloudGroup(const LLCloudPuff &puff) -{ -	if (mActiveRegionList.size()) -	{ -		// Update all the cloud puff positions, and timer based stuff -		// such as death decay -		for (region_list_t::iterator iter = mActiveRegionList.begin(); -			 iter != mActiveRegionList.end(); ++iter) -		{ -			LLViewerRegion* regionp = *iter; -			LLCloudGroup *groupp = regionp->mCloudLayer.findCloudGroup(puff); -			if (groupp) -			{ -				return groupp; -			} -		} -	} -	return NULL; -} - -  void LLWorld::renderPropertyLines()  {  	S32 region_count = 0; | 
