aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2014-10-17 17:58:36 +0100
committerCraig Robbins <kde.psych@gmail.com>2014-11-26 21:53:01 +1000
commit8df8554fceeb2eec2103c0222c0a45124e1de7cc (patch)
tree3f81f54a450c743ec7e17ff4fcfc9c0abeb9c377
parent9aaf67ebe0d6b05294695df6b0c8031f26b9a673 (diff)
downloadminetest-8df8554fceeb2eec2103c0222c0a45124e1de7cc.tar.gz
minetest-8df8554fceeb2eec2103c0222c0a45124e1de7cc.tar.bz2
minetest-8df8554fceeb2eec2103c0222c0a45124e1de7cc.zip
Only set the camera update keymap when using a debug build
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
-rw-r--r--src/defaultsettings.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index e7b0e3745..135fa8762 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -52,7 +52,12 @@ void set_default_settings(Settings *settings)
settings->setDefault("keymap_toggle_hud", "KEY_F1");
settings->setDefault("keymap_toggle_chat", "KEY_F2");
settings->setDefault("keymap_toggle_force_fog_off", "KEY_F3");
- settings->setDefault("keymap_toggle_update_camera", "KEY_F4");
+ settings->setDefault("keymap_toggle_update_camera",
+#if DEBUG
+ "KEY_F4");
+#else
+ "none");
+#endif
settings->setDefault("keymap_toggle_debug", "KEY_F5");
settings->setDefault("keymap_toggle_profiler", "KEY_F6");
settings->setDefault("keymap_camera_mode", "KEY_F7");