summaryrefslogtreecommitdiff
path: root/indra/newview/llworld.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-05-25 13:57:16 -0400
committerOz Linden <oz@lindenlab.com>2011-05-25 13:57:16 -0400
commit0f02f6784d0bc2a9cf72674da0b7bf2262ca8b58 (patch)
tree26dcc1ef54020acfb560d505660567a64f150303 /indra/newview/llworld.cpp
parent8690fa472bdece537be0392517633bc48b4aa903 (diff)
storm-1189: remove classic clouds
Diffstat (limited to 'indra/newview/llworld.cpp')
-rw-r--r--indra/newview/llworld.cpp39
1 files changed, 9 insertions, 30 deletions
diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp
index ec24b02934..3af62d537c 100644
--- a/indra/newview/llworld.cpp
+++ b/indra/newview/llworld.cpp
@@ -61,6 +61,8 @@
#include <map>
#include <cstring>
+#define TMP_WL_REMOVE_CLOUDS /* disables code for classic clouds */
+
//
// Globals
//
@@ -91,8 +93,11 @@ LLWorld::LLWorld() :
mLastPacketsIn(0),
mLastPacketsOut(0),
mLastPacketsLost(0),
- mSpaceTimeUSec(0),
- mClassicCloudsEnabled(TRUE)
+ mSpaceTimeUSec(0)
+#ifndef TMP_WL_REMOVE_CLOUDS
+ ,
+ mClassicCloudsEnabled(FALSE)
+#endif
{
for (S32 i = 0; i < 8; i++)
{
@@ -661,6 +666,7 @@ void LLWorld::updateParticles()
LLViewerPartSim::getInstance()->updateSimulation();
}
+#ifndef TMP_WL_REMOVE_CLOUDS
void LLWorld::updateClouds(const F32 dt)
{
static LLFastTimer::DeclareTimer ftm("World Clouds");
@@ -672,33 +678,6 @@ void LLWorld::updateClouds(const F32 dt)
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();
@@ -745,7 +724,7 @@ LLCloudGroup* LLWorld::findCloudGroup(const LLCloudPuff &puff)
}
return NULL;
}
-
+#endif // TMP_WL_REMOVE_CLOUDS
void LLWorld::renderPropertyLines()
{