From 0c20973c17771155f40b6eaf9caba81204702e4e Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 2 Nov 2011 12:50:21 +0200 Subject: Add 3d cloud checkbox in main menu (and rename setting from enable_2d_clouds to enable_3d_clouds) --- src/clouds.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/clouds.cpp') diff --git a/src/clouds.cpp b/src/clouds.cpp index 063a4b111..232436597 100644 --- a/src/clouds.cpp +++ b/src/clouds.cpp @@ -81,9 +81,9 @@ void Clouds::render() ScopeProfiler sp(g_profiler, "Rendering of clouds, avg", SPT_AVG); - int num_faces_to_draw = 6; - if(g_settings->getBool("enable_2d_clouds")) - num_faces_to_draw = 1; + int num_faces_to_draw = 1; + if(g_settings->getBool("enable_3d_clouds")) + num_faces_to_draw = 6; driver->setTransform(video::ETS_WORLD, AbsoluteTransformation); driver->setMaterial(m_material); -- cgit v1.2.3