aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwolekr <mirrorisim@gmail.com>2012-10-28 21:35:19 -0400
committerPerttu Ahola <celeron55@gmail.com>2013-01-21 21:41:09 +0200
commit8e50e256e68960fa857a8d0eb83eb3b9b7bd28b5 (patch)
treec85e4560d83acfad8b81115f981ac50972b32e8b
parent9b3287b86512a4f4a19cbe036b218e684aa54479 (diff)
downloadminetest-8e50e256e68960fa857a8d0eb83eb3b9b7bd28b5.tar.gz
minetest-8e50e256e68960fa857a8d0eb83eb3b9b7bd28b5.tar.bz2
minetest-8e50e256e68960fa857a8d0eb83eb3b9b7bd28b5.zip
Make cloud height user-configurable
-rw-r--r--src/clouds.cpp3
-rw-r--r--src/defaultsettings.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/clouds.cpp b/src/clouds.cpp
index 146eeb831..5b980a5ba 100644
--- a/src/clouds.cpp
+++ b/src/clouds.cpp
@@ -45,8 +45,7 @@ Clouds::Clouds(
//m_material.MaterialType = video::EMT_TRANSPARENT_VERTEX_ALPHA;
m_material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
- m_cloud_y = BS*100;
- //m_cloud_y = BS*50;
+ m_cloud_y = BS * g_settings->getS16("cloud_height");
m_box = core::aabbox3d<f32>(-BS*1000000,m_cloud_y-BS,-BS*1000000,
BS*1000000,m_cloud_y+BS,BS*1000000);
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index 163e99c69..db7df6edc 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -107,6 +107,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("screenshot_path", ".");
settings->setDefault("view_bobbing_amount", "1.0");
settings->setDefault("enable_3d_clouds", "true");
+ settings->setDefault("cloud_height", "120");
settings->setDefault("opaque_water", "false");
settings->setDefault("console_color", "(0,0,0)");
settings->setDefault("console_alpha", "200");