aboutsummaryrefslogtreecommitdiff
path: root/src/defaultsettings.cpp
diff options
context:
space:
mode:
authorEsteban I. Ruiz Moreno <exio4.com@gmail.com>2013-03-31 00:30:32 -0300
committerest31 <MTest31@outlook.com>2016-08-10 12:18:25 +0200
commit2c31b79235dd83de753fce5890c5797e149048b8 (patch)
tree86dac00e356f00d89a48bde28b3b052214e8168c /src/defaultsettings.cpp
parentc013c73f338b1c2227662458ebc650883f83271c (diff)
downloadminetest-2c31b79235dd83de753fce5890c5797e149048b8.tar.gz
minetest-2c31b79235dd83de753fce5890c5797e149048b8.tar.bz2
minetest-2c31b79235dd83de753fce5890c5797e149048b8.zip
Add zoom, tweakable with zoom_fov, default key: Z (like optifine)
Diffstat (limited to 'src/defaultsettings.cpp')
-rw-r--r--src/defaultsettings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index 3220b915a..42b232afc 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -40,6 +40,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("keymap_jump", "KEY_SPACE");
settings->setDefault("keymap_sneak", "KEY_LSHIFT");
settings->setDefault("keymap_drop", "KEY_KEY_Q");
+ settings->setDefault("keymap_zoom", "KEY_KEY_Z");
settings->setDefault("keymap_inventory", "KEY_KEY_I");
settings->setDefault("keymap_special1", "KEY_KEY_E");
settings->setDefault("keymap_chat", "KEY_KEY_T");
@@ -74,6 +75,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("always_fly_fast", "true");
settings->setDefault("directional_colored_fog", "true");
settings->setDefault("tooltip_show_delay", "400");
+ settings->setDefault("zoom_fov", "15");
// Some (temporary) keys for debugging
settings->setDefault("keymap_print_debug_stacks", "KEY_KEY_P");