diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-24 15:37:41 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-24 15:37:41 +0300 |
commit | c9967d6d07a4863f2278376b34bb68d86392e902 (patch) | |
tree | 58bc3c884d310dd045b170284eaa49bdf05d2a0b /src/main.cpp | |
parent | ba88685fab339acd471ade642d24d9ca7e794f04 (diff) | |
download | minetest-c9967d6d07a4863f2278376b34bb68d86392e902.tar.gz minetest-c9967d6d07a4863f2278376b34bb68d86392e902.tar.bz2 minetest-c9967d6d07a4863f2278376b34bb68d86392e902.zip |
updated menu a bit, and some other small fixes
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 429b769f7..3bc4de777 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1352,6 +1352,8 @@ int main(int argc, char *argv[]) menudata.address = narrow_to_wide(address);
menudata.name = narrow_to_wide(playername);
menudata.port = narrow_to_wide(itos(port));
+ menudata.fancy_trees = g_settings.getBool("new_style_leaves");
+ menudata.smooth_lighting = g_settings.getBool("smooth_lighting");
menudata.creative_mode = g_settings.getBool("creative_mode");
menudata.enable_damage = g_settings.getBool("enable_damage");
@@ -1413,6 +1415,8 @@ int main(int argc, char *argv[]) int newport = stoi(wide_to_narrow(menudata.port));
if(newport != 0)
port = newport;
+ g_settings.set("new_style_leaves", itos(menudata.fancy_trees));
+ g_settings.set("smooth_lighting", itos(menudata.smooth_lighting));
g_settings.set("creative_mode", itos(menudata.creative_mode));
g_settings.set("enable_damage", itos(menudata.enable_damage));
@@ -1439,6 +1443,9 @@ int main(int argc, char *argv[]) if(device->run() == false)
break;
+ // Initialize mapnode again to enable changed graphics settings
+ init_mapnode();
+
/*
Run game
*/
|