From c9967d6d07a4863f2278376b34bb68d86392e902 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 24 Apr 2011 15:37:41 +0300 Subject: updated menu a bit, and some other small fixes --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.cpp') 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 */ -- cgit v1.2.3